XIM Community

Getting Auto Hotkey to Work  (Read 367 times)

Offline toobhed

  • Member
  • *
  • Posts: 17
    • View Profile
Getting Auto Hotkey to Work
« on: 03:56 PM - 01/08/19 »
I have watched the video https://community.xim.tech/index.php?topic=63878.0 and read the thread https://community.xim.tech/index.php?topic=63605.0  and have a few questions.
Quote
The compatible AutoHotKey version is 1.1. You have to use either 32 or 64 bit Unicode executable. Ansi executables are not supported.

I have gone to https://autohotkey.com and I don't see version 1.1, the current version is v1.1.30.01 - November 11, 2018, I can't find a 1.1 in the archives.  Does 1.1.30.01 work?

Does it matter where you save the AHK executable?  I have saved it in the XIM Link directory where XIM Link.exe is and pointed XIMLink to AutoHotkeyU32.exe

Should we link to 64 bit or 32 bit AutoHotkeyU64.exe or AutoHotkeyU32.exe?

What should my hotkey file extension be? 

I saved my script as "myTest.ahk" in Documents\XIM Link\Scripts.  I exited XIMLink and reloaded.  When I click Edit button under scripts window, I get the Activate Scripts and Scripts Groups window, but the script does not show up.  What could I be doing wrong?  Here is the code:

Code: [Select]
h:: ;Will move LeftStickX to right one second, then left one second and stop.
    XIMInputData("LeftStickX", 100)
    Sleep 1000
    XIMInputData("LeftStickX", -100)
    Sleep 1000
    XIMInputData("LeftStickX", 0)
Return

Offline toobhed

  • Member
  • *
  • Posts: 17
    • View Profile
Re: Getting Auto Hotkey to Work
« Reply #1 on: 11:33 AM - 01/09/19 »
Are there installation instructions for getting Auto Hot Key installed and configured?  Is there anything that needs to be included in each script such as environment configuration or directory location?  I am not finding much information on the forum. 

Thanks

Offline W11cE

  • Moderator
  • MVP
  • *
  • Posts: 1523
    • View Profile
Re: Getting Auto Hotkey to Work
« Reply #2 on: 01:05 PM - 01/14/19 »
1.1.30.01 is still 1.1. So yes it works. You should be pointing to AutoHotkey.exe, it will launch the correct version automatically. The extension on the scripts should be .ahk. Those wont work otherwise. Link will automatically add the needed line for the extension files.

Most likely you have wrong extension on the script file. Check that first.