Page 1 of 1

create an .exe which instantly launches the macro

Posted: 28 Apr 2016, 05:08
by nicolo
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?

Re: create an .exe which instantly launches the macro

Posted: 28 Apr 2016, 05:34
by Nextron
It is. Is which area are you running into problems?

Re: create an .exe which instantly launches the macro

Posted: 28 Apr 2016, 05:49
by nicolo
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")

Re: create an .exe which instantly launches the macro

Posted: 28 Apr 2016, 06:05
by Nextron
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.

Re: create an .exe which instantly launches the macro

Posted: 28 Apr 2016, 06:23
by nicolo
It works.
thank a lot!