how to make a script a .exe file

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
sbrady19
Posts: 348
Joined: 12 Apr 2018, 05:22
Location: Central Florida
Contact:

how to make a script a .exe file

Post by sbrady19 » 14 Mar 2024, 10:42

this was so easy in v1, how do I turn a script into an app so I can give it to a co-worker.

User avatar
Smile_
Posts: 859
Joined: 03 May 2020, 00:51

Re: how to make a script a .exe file

Post by Smile_ » 14 Mar 2024, 10:47


gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: how to make a script a .exe file

Post by gregster » 14 Mar 2024, 10:54

Basically the same like in v1, but make sure to choose the right base file if you have both v1 and v2 installed.
For that, use the GUI of ahk2exe (if you don't prefer the command line) - where you can also define a default.

User avatar
WarlordAkamu67
Posts: 232
Joined: 21 Mar 2023, 06:52

Re: how to make a script a .exe file

Post by WarlordAkamu67 » 14 Mar 2024, 10:56

samegui.jpg
samegui.jpg (57.83 KiB) Viewed 225 times

RussF
Posts: 1311
Joined: 05 Aug 2021, 06:36

Re: how to make a script a .exe file

Post by RussF » 14 Mar 2024, 12:34

If you have installed AHK properly, when you right-click on your script file, you should get a context menu like:
image.png
image.png (10.14 KiB) Viewed 218 times
Just choose Compile script (GUI)...

Russ

User avatar
kunkel321
Posts: 1194
Joined: 30 Nov 2015, 21:19

Re: how to make a script a .exe file

Post by kunkel321 » 14 Mar 2024, 14:18

Personally, I like to run my scripts "portably," without compiling them, as discussed here: https://www.autohotkey.com/docs/v2/Scripts.htm#defaultfile
This lets me tweak the code as desired. For sharing with a coworker though, yeah, probably compile it.
ste(phen|ve) kunkel

sbrady19
Posts: 348
Joined: 12 Apr 2018, 05:22
Location: Central Florida
Contact:

Re: how to make a script a .exe file

Post by sbrady19 » 14 Mar 2024, 16:52

I thought I re-installed correctly, nope
I have to use DASH, no compile with RMB
"I" use scripts to run my GUI
I have to use an EXE for co-workers.
thanks for all your help.

Post Reply

Return to “Ask for Help (v2)”