Run script without AutoHotKey installed
I have created a simple script I would like to distribute to the field. Is there a way to run .ahk scripts without installing AutoHotKey on each machine?
You have to put Autohotkey.exe along with YourScript.ahk and create a Shortcut to Autohotkey.exe with YourScript.ahk passed as a parameter.
Second, I created a .bat file to send to the user.
So now all they have to do is initiate the .bat file. Is there an easier way to do this?
Yes, compile the script... Unless you need to auto-alter the script or create dynamically a new script to run (like Laszlo's calculator).
Is there an easier way to do this?
Another advantage of compiled scripts is that you don't really need to Zip them, as they are already compressed.
Run Ahk2Exe.exe in the Compiler sub-directory, or choose Compile Script in the context menu of the script (if you installed AutoHotkey).
I right clicked the .ahk file and selected Compile Script. I then took the .exe file and ran it on a PC without AutoHotKey installed. Worked great. Thanks.
Its NOT my Day!
I wrote an Installer for your script. I have sent it as a Personal Message & so please check your Inbox.
Please give me feedback after testing it.
Save this to a file like install.reg and run on all computers (note: untested)
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.ahk] @="AutoHotkeyScript" [HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Open\Command] @="\"\\workstation01\C:\\Program Files\\AutoHotkey\\AutoHotkey.exe\" \"%1\" %*"
autohotkey.com/net Site Manager
Contact me by email (polyethene at autohotkey.net) or message tidbit