Jump to content

Start script on reboot


Recommended Posts

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 elements
Local $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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...