|
OK, i feel almost embarrised to ask this. I have read the documentation and have a perfect example code but still i cant seem to get it to work!
My problem is this, i want to run a game using hyperspin (but i suppose thats not important), the problem is i have made a neat controler console but one of the outputs is ALT
THe specific program im using of course, if you hit alt, brngs up the file menu and really ruins the game experience.
So, heres my code, its mixed in with some hyperspin stuff.
else if (systemName = "Sony Playstation" && executable = "psxfin.exe")
{
psxParams = -f
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% %psxParams% "%romPath%%romName%%romExtension%", %EmuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
#IfWinActive ahk_class pSX #alt::z
WinWait, ahk_class pSX
hideDesktop()
WinWaitClose, ahk_class pSX
}
The game runs but the alt key does not change.
My theory is that i dont have any understanding of classes and that pSX needs to be changed to something else. (i tryed subing it with the exe name, the title and some other things.)
The other thing i tryed was alt:z
But then when you close the game it wont change back so i really want to make it window specific.
Its my first post, and my first ahk script iv edited. (total newbie)
Thanks!
|
|