PokerMunkee 0 Posted June 27, 2015 I have a script that works correctly but I need to click the "Start" button each time I launch the .exe file. So even if I put the .exe in the Windows Start folder, I still need to click "Start".What do I need to do so it runs the script without having to click Start? Here is a snip of the beginning of my script: #include <Constants.au3>#include <GUIConstantsEx.au3>Opt("GUIOnEventMode", 1) ; Use OnEvent mode for GUI elements;Create GUI elementsLocal $MainWindow = GUICreate( "Gateway Monitor - Stopped", 400, 400)GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEButton")Local $ToggleButton = GUICtrlCreateButton( "Start", 150, 20, 100, 50)GUICtrlSetOnEvent($ToggleButton, "TOGGLEButton")Local $EditBox = GUICtrlCreateEdit("", 0, 100, 400, 300)GUISetState(@SW_SHOW, $MainWindow) Thanx, Newb Share this post Link to post Share on other sites
kaisies 20 Posted June 27, 2015 After setstate show just call your toggle button function Share this post Link to post Share on other sites
Rockerfeller 2 Posted June 27, 2015 In order for your script to run at startup you will need to compile it. Share this post Link to post Share on other sites
Jos 2,164 Posted June 27, 2015 Not really, only when running it on a computer without autoit3 installed. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
PokerMunkee 0 Posted June 29, 2015 (edited) blah Edited June 29, 2015 by PokerMunkee mistake Share this post Link to post Share on other sites