create an .exe which instantly launches the macro

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
nicolo
Posts: 23
Joined: 28 Apr 2016, 04:57

create an .exe which instantly launches the macro

28 Apr 2016, 05:08

Hi,

I am a newbie in AutoHotkey.
I want :
1. to create an .exe which instantly launches the macro, without having to press any key.
2. once the .exe macro is over, I want the .exe to shut down by himself

is this possible?
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: create an .exe which instantly launches the macro

28 Apr 2016, 05:34

It is. Is which area are you running into problems?
nicolo
Posts: 23
Joined: 28 Apr 2016, 04:57

Re: create an .exe which instantly launches the macro

28 Apr 2016, 05:49

I have created an .exe with pulover's macro creator, but when I launch the .exe, I need to press F4 for the script to be executed.
I would like it to execute by itself right away when I launch the .exe
and also, I'd like the .exe to shut down by itself after executing the script (whereas I currently have to right click and press "exit")
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: create an .exe which instantly launches the macro

28 Apr 2016, 06:05

Within your script, there's probably a line F4::, remove that and the script will run without pressing F4. That will likely also remove its persistence; so it will exit after it has run. If it doesn't, replace all Return's with ExitApp. If that doesn't help, post the script here.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: CodeKiller, just me, rc76, yxldh and 194 guests