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
Edited by Zerothian, 25 April 2012 - 10:52 PM.





