AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New Version of Pidgin not friendly with AutoHotKey

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
akifbayram
Guest





PostPosted: Thu Mar 06, 2008 12:11 am    Post subject: New Version of Pidgin not friendly with AutoHotKey Reply with quote

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

PostPosted: Thu Mar 06, 2008 12:56 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
akifbayram
Guest





PostPosted: Thu Mar 06, 2008 2:29 am    Post subject: Used to work Reply with quote

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

PostPosted: Thu Mar 06, 2008 2:44 am    Post subject: Reply with quote

i tested on new version of pidgin but on xp,and it works to me
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
akifbayram
Guest





PostPosted: Thu Mar 06, 2008 2:49 am    Post subject: hmm Reply with quote

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





PostPosted: Thu Mar 06, 2008 2:51 am    Post subject: Like this Reply with quote


That's how it shows up. Weird, ey.
Back to top
canta



Joined: 30 May 2006
Posts: 49

PostPosted: Thu Mar 06, 2008 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Oberon



Joined: 18 Feb 2008
Posts: 453

PostPosted: Thu Mar 06, 2008 6:06 pm    Post subject: Reply with quote

Gtk applications don't respond the same way Windows does. I tried to automate pidgin before, sadly my attempts were unsuccessful.
Back to top
View user's profile Send private message
AaronCompNetSys



Joined: 27 Jun 2007
Posts: 3

PostPosted: Thu Jul 31, 2008 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
AaronCompNetSys



Joined: 27 Jun 2007
Posts: 3

PostPosted: Thu Jul 31, 2008 4:29 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
kopje
Guest





PostPosted: Mon Nov 17, 2008 8:50 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group