AutoHotkey Community

It is currently May 26th, 2012, 6:35 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: March 6th, 2008, 1:11 am 
I updated my Pidgin to version 2.4.0 [previous was 2.3.1] and one of my scripts refused to work. When I clicked WIN + Z, the buddy list used to pop up, but now I get an error message saying "An instance of Pidgin is already running."

This is the code that used to work
Code:
 

#z::
;----Pidgin buddy List Show/Hide
IfWinActive Buddy List
{
WinClose Buddy List
} else {
Run "C:\Program Files\Pidgin\Pidgin.exe"
}
Return


Plus, any other hotkeys for Pidgin that you guys are using would be great to show off here.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2008, 1:56 am 
Offline

Joined: November 29th, 2007, 2:36 pm
Posts: 43
Location: Romania
here is a little script for pidgin

Code:
#SingleInstance Force
#NoEnv
#Persistent


Menu, Tray, Icon, C:\Program Files\Pidgin\Pidgin.exe
Menu, Tray, NoStandard
Menu, Tray, Tip, Pidgin Script 1.0


;Pidgin Script 1.0
;Controls
;Win Key + X   Exit Script
;Win Key + Z   Show \ Run Pidgin
;WheelUp or WheelDown   Ctrl + Tab in Conversation Window
;Win Key + Middle Mouse    Circle Pidgin Windows

GroupAdd, Pidgin, ahk_class gdkWindowToplevel ; Group Pidgin Windows


#x::ExitApp
#Mbutton::
GroupActivate, Pidgin, r
return
;Show or Run Pidgin

#z::
IfWinExist ahk_class gdkWindowToplevel
   WinActivate
else
   Run "C:\Program Files\Pidgin\Pidgin.exe"
                   
return



#IfWinActive, ahk_class gdkWindowToplevel
WheelUp::
Send, {Ctrl Down}{Tab}{Ctrl Up}
WheelDown::
Send, {Ctrl Down}{Tab}{Ctrl Up}
return





if Pidgin is minimized in the tray don't work the show Buddy List

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Used to work
PostPosted: March 6th, 2008, 3:29 am 
When I used Pidgin 2.3.1, the script worked when it was in the tray, but now with your script, nothing seems to happen. I'm on a laptop using Vista, do the scroll function is unnecessary.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2008, 3:44 am 
Offline

Joined: November 29th, 2007, 2:36 pm
Posts: 43
Location: Romania
i tested on new version of pidgin but on xp,and it works to me

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: hmm
PostPosted: March 6th, 2008, 3:49 am 
I got the Pidgin Buddy List window to show up, but it is all blank when I use this code

Code:
#Z::
{
    SetTitleMatchMode,2
    DetectHiddenWindows, on
    IfWinActive, Buddy List
    {
        WinClose, Buddy List
    }
    Else
    {
        IfWinNotExist, Buddy List
            Winshow
        Else
        {
            DetectHiddenWindows, On
            IfWinExist, ahk_class gdkWindowToplevel
            {
                WinShow
                WinActivate
            }
        }
    }
}

Just an edited version of the other code.
help =/


Report this post
Top
  
Reply with quote  
 Post subject: Like this
PostPosted: March 6th, 2008, 3:51 am 
Image
That's how it shows up. Weird, ey.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2008, 7:00 pm 
Offline

Joined: May 30th, 2006, 11:47 am
Posts: 49
I cant get a script to show the Buddy List either. I tried different postmessage etc. I get it to flimmer and show a split second, but then it dissappears again.
I dont have a solution to get it work in AHK, but there is a plugin that will let you toggle the Buddy List (and a couple other hotkeys). You can find it here:
http://pidgin-hotkeys.sourceforge.net/


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2008, 7:06 pm 
Offline

Joined: February 18th, 2008, 8:26 pm
Posts: 442
Gtk applications don't respond the same way Windows does. I tried to automate pidgin before, sadly my attempts were unsuccessful.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2008, 5:26 pm 
Offline

Joined: June 27th, 2007, 2:31 pm
Posts: 8
GTK + AutoHotKey = Not play nice.
Sorry I didn't see this before, its easy to fix once you know that. Its best to just send a hotkey to Pidgin and have it show/hide its own windows.

You need this:
http://pidgin-hotkeys.sourceforge.net/

And I setup a wierd key I would never use for the plugin:
CTRL + ALT + SHIFT + NumSubtract

And then set up what I want (which changes time to time) with AutoHotKey.
Code:
;Show/Hide by send hotkey to Pidgin (right side)ALT+SPACE
>!Space::^!+NumpadSub


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2008, 5:29 pm 
Offline

Joined: June 27th, 2007, 2:31 pm
Posts: 8
Oh, and the WIN+Scrollwheel instance switcher as above I use this instead:
http://www.ntwind.com/forum/viewtopic.php?p=1922#1922

It works with all applications, like OSX


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2008, 9:50 pm 
I've the following script running to make it easy for me to type German on an English keyboard:

Code:
^!a::ä
^!o::ö
^!u::ü
^!s::ß
^!A::Ä
^!O::Ö
^!U::Ü


However, of course, it doesn't work inside Pidgin windows. Anyway to fix this?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2009, 4:41 pm 
Offline

Joined: April 7th, 2009, 10:48 am
Posts: 6
I am having the same problem as kopje above. Any recommendations?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: same here!
PostPosted: October 6th, 2009, 1:17 pm 
i'm having exactly the same problem... how can german umlauts be send to a windows gtk application?


Report this post
Top
  
Reply with quote  
PostPosted: February 14th, 2010, 1:22 pm 
See this article (in german), in particular the "Update (2009-05-17)" section (contains link to a script).

P.S.
According AHK Help, section "General Remarks", the German umlauts can be sent by AHK on US / EU-Western code-page, but there are problems with other Unicode chars. For that reason I'm using Lexikos' [url]AutoHotkey_L[/url] custom build, and the script below:
Code:
$^!s::  SendUnicode( "0219" )  ; ș
$^!+s:: SendUnicode( "0218" )  ; Ș
$^!t::  SendUnicode( "021B" )  ; ț
$^!+t:: SendUnicode( "021A" )  ; Ț
; …

$!+Left::  SendUnicode( "2190" )  ; ←
$!+Up::    SendUnicode( "2191" )  ; ↑
$!+Right:: SendUnicode( "2192" )  ; →
$!+Down::  SendUnicode( "2193" )  ; ↓

$!+>:: SendUnicode( "2265" )  ; ≥
$!+<:: SendUnicode( "2264" )  ; ≤
; …

SendUnicode( UniHex )
{
  ; difference between GTK+ applications and all other Windows applications
  IfWinActive ahk_class gdkWindowToplevel
    SendInput, {Ctrl down}{Shift down}u%UniHex%{Space}{Shift up}{Ctrl up}
  Else
    SendInput, {U+%UniHex%}
}


Report this post
Top
  
Reply with quote  
PostPosted: February 14th, 2010, 10:51 pm 
This one is better (you don't need to know the hex-code of the chars):
Code:
$^!s::  SendUnicode( "ș" )
$^!+s:: SendUnicode( "Ș" )
$^!t::  SendUnicode( "ț" )
$^!+t:: SendUnicode( "Ț" )
; …

$!+Left::  SendUnicode( "←" )
$!+Up::    SendUnicode( "↑" )
$!+Right:: SendUnicode( "→" )
$!+Down::  SendUnicode( "↓" )

$!+>:: SendUnicode( "≥" )
$!+<:: SendUnicode( "≤" )
; …

SendUnicode( UniSz )
{
  SetFormat, IntegerFast, Hex
  UniHex := SubStr( Asc(UniSz) . "", 3 )
  SetFormat, IntegerFast, d

  ; difference between GTK+ applications and all other Windows applications
  IfWinActive ahk_class gdkWindowToplevel
    SendInput, {Ctrl down}{Shift down}u%UniHex%{Space}{Shift up}{Ctrl up}
  Else
    SendInput, {U+%UniHex%}
}


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, Google [Bot], JSLover, kkkddd1, Tipsy3000, Yahoo [Bot] and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group