Okay I considered putting this into the OT forum but decided that it was relevent to PAM so I put it here. My problem is when I run this AHK script PAM pops up right after it sends the "#" during the pidgin areas. I posted the whole thing just in case any of it was relevant. If this is a bug in PAM here ya go if it's my fault can you tell me why?
#SingleInstance force ;Only allow once instance to run. If one already exists it will be over written. #NoTrayIcon #IfWinActive, ahk_class CabinetWClass ;Checks to see if in a Windows Explorer Window ^n:: ;ctrl+n send !f ;alt+f loop ;Wait until on the new menu item { StatusBarGetText, status IfInString, status, new { break } send {down} } send {right}{enter} return #IfWinActive, ahk_class CabinetWClass ;Checks to see if in a Windows Explorer Window ^s:: ;ctrl+s send !f ;alt+f loop ;Wait until on the New menu item { StatusBarGetText, status IfInString, status, New { break } send {down} } send {right}{down}{enter} return #IfWinActive, ahk_class CabinetWClass ;Checks to see if in a Windows Explorer Window ^g:: ;ctrl+g send !f ;alt+f loop ;Wait until on the erase menu item { StatusBarGetText, status IfInString, status, erase { break } send {down} } send {enter} WinWaitActive, Confirm Erasing send {tab}{enter} WinWaitActive, Erasing Report send {enter} return #IfWinActive, ahk_class gdkWindowToplevel ;Checks to see if in a Pidgin window ^a:: ;Control+a WinGetActiveTitle, title send, {enter}/nick JacobMastel-Away{enter}/msg ChanServ devoice {#}%title%{enter} return #IfWinActive, ahk_class gdkWindowToplevel ;Checks to see if in a Pidgin window ^b:: ;Control+b WinGetActiveTitle, title send, {enter}/nick JacobMastel-Busy{enter}/msg ChanServ devoice {#}%title%{enter} return #IfWinActive, ahk_class gdkWindowToplevel ;Checks to see if in a Pidgin window ^s:: ;Control+s WinGetActiveTitle, title send, {enter}/nick Jacobm001-Sporadic{enter}/msg ChanServ devoice {#}%title%{enter} return #IfWinActive, ahk_class gdkWindowToplevel ;Checks to see if in a Pidgin window ^r:: ;Control+r WinGetActiveTitle, title send, {enter}/nick JacobMastel{enter}/msg ChanServ voice {#}%title%{enter} return #IfWinActive, ahk_class gdkWindowToplevel ;Checks to see if in a Pidgin window ^i:: ;Control+i WinGetActiveTitle, title send, {enter}/nick JacobMastel{enter}/msg NickServ identify [MY PASS GOES HERE]{enter} return #IfWinActive, ahk_class gdkWindowToplevel ;Checks to see if in a Pidgin window ^o:: ;Control+o WinGetActiveTitle, title send, !o{down}{enter} return
wait, what are you exactly trying to do with this script? If I knew what you wanted to do then I could probably skim through your code and find your mistake, but im not sure what you want it to do. Once this is clarified then I wont mind helping you.![Smile](https://portableapps.com/sites/all/modules/smiley/packs/kolobok/smile.gif)
An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)
The program is to create certain hotkeys for specific windows. I got the idea from a lifehacker article. The problem I'm having is with the pidgin windows. It checks to make sure they're in a pidgin window via the window class, then if it is it send the code for example: /nick JacobMastel-Away then /msg ChanServ devoice [Current Window Title Here].
Release Team Member
My guess is your missing a return at somepoint in there.
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
I have all of the returns in place. Any other ideas?
Release Team Member
Flakey guess, my bad![Blum](https://portableapps.com/sites/all/modules/smiley/packs/kolobok/blum3.gif)
My guess is that the # could be being sent wrong. Does it work right if you don't have the PAM Menu running?
Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world
I did a quick change I'll post the updated code later when I'm at home and have the files. But I removed the check for active window title variable and it works fine without that. So instead of finding the window title I just put in a few channels manually. That's now how I'd like to do it but I'm using a temp solution. Thanks for the help.
By the way:
PAM = PortableApps.com Menu there's no need for the added PAM Menu.
Release Team Member