| 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: 42 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: 42 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: 442
|
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: 8
|
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: 8
|
|
| 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 |
|
 |
autohotkeynoob
Joined: 07 Apr 2009 Posts: 6
|
Posted: Tue Apr 07, 2009 3:41 pm Post subject: |
|
|
| I am having the same problem as kopje above. Any recommendations? |
|
| Back to top |
|
 |
frank3455 Guest
|
Posted: Tue Oct 06, 2009 12:17 pm Post subject: same here! |
|
|
| i'm having exactly the same problem... how can german umlauts be send to a windows gtk application? |
|
| Back to top |
|
 |
ND Guest
|
Posted: Sun Feb 14, 2010 12:22 pm Post subject: Sending umlauts to GTK+ applications |
|
|
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%}
} |
|
|
| Back to top |
|
 |
ND Guest
|
Posted: Sun Feb 14, 2010 9:51 pm Post subject: Re: Sending umlauts to GTK+ applications |
|
|
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%}
} |
|
|
| Back to top |
|
 |
|