PokerMunkee Posted June 27, 2015 Share 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 Link to comment Share on other sites More sharing options...
kaisies Posted June 27, 2015 Share Posted June 27, 2015 After setstate show just call your toggle button function Link to comment Share on other sites More sharing options...
Rockerfeller Posted June 27, 2015 Share Posted June 27, 2015 In order for your script to run at startup you will need to compile it. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 27, 2015 Developers Share 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. Link to comment Share on other sites More sharing options...
PokerMunkee Posted June 29, 2015 Author Share Posted June 29, 2015 (edited) blah Edited June 29, 2015 by PokerMunkee mistake Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now