AutoHotKey With GIMX

Discuss everything to do with GIMX here
Kide2008
Posts: 18
Joined: Wed Oct 03, 2012 9:39 am

AutoHotKey With GIMX

Post 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 .
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: AutoHotKey With GIMX

Post 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.
GIMX creator
Kide2008
Posts: 18
Joined: Wed Oct 03, 2012 9:39 am

Re: AutoHotKey With GIMX

Post by Kide2008 »

didn't work , any other idea
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: AutoHotKey With GIMX

Post by Matlo »

Try "Sixaxis Control" as window title.
GIMX creator
Kide2008
Posts: 18
Joined: Wed Oct 03, 2012 9:39 am

Re: AutoHotKey With GIMX

Post 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
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: AutoHotKey With GIMX

Post by Matlo »

Are you using the alternate SDL.dll file?
GIMX creator
Kide2008
Posts: 18
Joined: Wed Oct 03, 2012 9:39 am

Re: AutoHotKey With GIMX

Post by Kide2008 »

yes , try by yourself and see
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: AutoHotKey With GIMX

Post 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
GIMX creator
Kide2008
Posts: 18
Joined: Wed Oct 03, 2012 9:39 am

Re: AutoHotKey With GIMX

Post 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 .....
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: AutoHotKey With GIMX

Post 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
GIMX creator
Post Reply