| View previous topic :: View next topic |
| Author |
Message |
akifbayram Guest
|
Posted: Thu Mar 06, 2008 12:11 am Post subject: New Version of Pidgin not friendly with AutoHotKey |
|
|
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. |
|
| Back to top |
|
 |
Cristi®
Joined: 29 Nov 2007 Posts: 35 Location: Romania
|
Posted: Thu Mar 06, 2008 12:56 am Post subject: |
|
|
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 _________________
 |
|
| Back to top |
|
 |
akifbayram Guest
|
Posted: Thu Mar 06, 2008 2:29 am Post subject: Used to work |
|
|
| 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. |
|
| Back to top |
|
 |
Cristi®
Joined: 29 Nov 2007 Posts: 35 Location: Romania
|
Posted: Thu Mar 06, 2008 2:44 am Post subject: |
|
|
i tested on new version of pidgin but on xp,and it works to me _________________
 |
|
| Back to top |
|
 |
akifbayram Guest
|
Posted: Thu Mar 06, 2008 2:49 am Post subject: hmm |
|
|
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 =/ |
|
| Back to top |
|
 |
akifbayram Guest
|
Posted: Thu Mar 06, 2008 2:51 am Post subject: Like this |
|
|
That's how it shows up. Weird, ey. |
|
| Back to top |
|
 |
canta
Joined: 30 May 2006 Posts: 49
|
Posted: Thu Mar 06, 2008 6:00 pm Post subject: |
|
|
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/ |
|
| Back to top |
|
 |
Oberon
Joined: 18 Feb 2008 Posts: 453
|
Posted: Thu Mar 06, 2008 6:06 pm Post subject: |
|
|
| Gtk applications don't respond the same way Windows does. I tried to automate pidgin before, sadly my attempts were unsuccessful. |
|
| Back to top |
|
 |
AaronCompNetSys
Joined: 27 Jun 2007 Posts: 3
|
Posted: Thu Jul 31, 2008 4:26 pm Post subject: |
|
|
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 |
|
|
| Back to top |
|
 |
AaronCompNetSys
Joined: 27 Jun 2007 Posts: 3
|
|
| Back to top |
|
 |
kopje Guest
|
Posted: Mon Nov 17, 2008 8:50 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
|