AutoIt Problem

07/12/2013 23:18 CantShutMyMouth#1
I have an autoIt problem. I'm running in a main file more autoit files :Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "1.au3"')


I run more of them . But i get no ideea on how to stop them with a hotkeyset and a function. If i'm trying to stop them by closing the "autoit3.exe" process, the first closed is the main one , so it won't execute the rest anymore. So the executed first are still there. Any ideea on how to solve this???
07/13/2013 00:38 Cpt.Cock#2
You can set Hotkeys:
PHP Code:
HotKeySet("{F5}","_stop" 
Then you just create the function _stop
PHP Code:
Func _stop()
 Exit
EndFunc 
If you now press F5 once for every Window it should close ;)
07/13/2013 01:09 CantShutMyMouth#3
Come on, i tried it already, i'm not so noob :))
07/13/2013 10:04 FacePalmMan#4
Code:
#include <Misc.au3>
if not _ispressed("1B") then Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "1.au3"')
hotkeyset sets a function that should be run if that button was pressed. _ispressed asks if a button is pressed and returns a value to the variable where you wrote the _ispressed in.