Page 1 of 2

AutoHotKey With GIMX

Posted: Wed Oct 03, 2012 9:49 am
by Kide2008
is there a way to use the Software Auto Hot Key ( Macro ) with GIMX ?

the problem is that Auto Hot Key can't find the WinActivate ( the Active Window's Title ) which is emuclient.exe ....

also i know that GIMX has its own build in macro but i want to use AutoHotKey ( im running Windows 7 )

if anyone know how to use AutoHotKey with GIMX ... can you explane step by Step and give an Example .

Re: AutoHotKey With GIMX

Posted: Wed Oct 03, 2012 11:50 am
by Matlo
It won't work because GIMX interfaces with the RAWINPUT API, which AFAIK doesn't provide any way to generate events.

If you don't plan to use a mouse, you can try the alternate SDL.dll.

Virtual devices support is tracked in issue 128.

Re: AutoHotKey With GIMX

Posted: Wed Oct 03, 2012 2:15 pm
by Kide2008
didn't work , any other idea

Re: AutoHotKey With GIMX

Posted: Wed Oct 03, 2012 2:29 pm
by Matlo
Try "Sixaxis Control" as window title.

Re: AutoHotKey With GIMX

Posted: Thu Oct 04, 2012 9:18 am
by Kide2008
it detected the window but it doesn't respond to Auto Hot Key Macros ..... simple code ...try and tell me what's wrong .



Loop ,


{

WinWait, Sixaxis Control,
IfWinNotActive, Sixaxis Control, , WinActivate, Sixaxis Control,
WinWaitActive, Sixaxis Control,

Send, wwwwwwwwwwwwwwwwwwwww

}

1::Pause

Re: AutoHotKey With GIMX

Posted: Thu Oct 04, 2012 9:34 am
by Matlo
Are you using the alternate SDL.dll file?

Re: AutoHotKey With GIMX

Posted: Thu Oct 04, 2012 2:56 pm
by Kide2008
yes , try by yourself and see

Re: AutoHotKey With GIMX

Posted: Thu Oct 04, 2012 4:21 pm
by Matlo
You have to add a delay (at least 1000/frequency ms) between the up and down events:

Code: Select all

Send {w down}
Sleep, 50 ; ms
Send {w up}
http://www.autohotkey.com/docs/commands/Send.htm

Re: AutoHotKey With GIMX

Posted: Fri Oct 05, 2012 3:48 pm
by Kide2008
Worked ! thanks alot but it is not about the delay ... it just takes some time for Auto Hot Key to detect the GIMX ....i don't know why .....

Re: AutoHotKey With GIMX

Posted: Fri Oct 05, 2012 5:55 pm
by Matlo
Without delay the press duration will be 0 (unless you change it using SetKeyDelay), which will result in missed events.

http://www.autohotkey.com/docs/commands/SetKeyDelay.htm