Jump to content

Zerothian

Members
  • Posts

    2
  • Joined

  • Last visited

Zerothian's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for the example mate . It gave me an undeclared global variable error on the $GUI_EVENT_CLOSE. But i included... #include <StaticConstants.au3> #Include <GUIConstantsEX.au3> And it launched fine now i am going to scour the script and find out what makes it tick . Thanks again. Zero
  2. Well as the title says, this is my first script that i have written on my own. I used the GUI Creator (Forgot the name) In the AutoIT editor for the GUI itself but i wrote the part to launch the programs and pop a MsgBox. I know it's very basic but i only started learning scripting with AutoIt today xD. C&C Welcome. Also any suggestion on how to tidy the script up would be appreciated as well. Thanks. ; Created by Zero' ; Simple 4 Program Launcher w/Buttons ; Date: 25/04/2012 #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #region ### START Koda GUI section ### Form= Global $Form1 = GUICreate("Clark's Launcher", 319, 29) Global $Button1 = GUICtrlCreateButton("Steam", 0, 0, 75, 25) Global $Button2 = GUICtrlCreateButton("Firefox", 80, 0, 75, 25) Global $Button3 = GUICtrlCreateButton("Origin", 160, 0, 75, 25) Global $Button4 = GUICtrlCreateButton("Spotify", 240, 0, 75, 25) GUISetState(@SW_SHOW) #endregion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Run("C:Program Files (x86)SteamSteam.exe") msgbox(262192, "Clark's Launcher", "Steam Has Been Launched", 3) Case $Button2 Run("C:Program Files (x86)Mozilla Firefoxfirefox.exe") MsgBox(262192, "Clark's Launcher", "Firefox Has Been Launched", 3) Case $Button3 Run("C:Program Files (x86)OriginOrigin.exe") MsgBox(262192, "Clark's Launcher", "Origin Has Been Launched", 3) Case $Button4 Run("C:UsersxxxxAppDataRoamingSpotifyspotify.exe") MsgBox(262192, "Clark's Launcher", "Spotify Has Been Launched", 3) EndSwitch WEnd
×
×
  • Create New...