Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cs ----------------------------------------------------------------------------
- AutoIt Version: 3.3.12.0
- Author: ontheroad @freak.no
- Editor: onClipEvent @freak.no
- Script Function:
- Open a GUI with hotkey "SHIFT Z" and close with "SHIFT X".
- #ce ----------------------------------------------------------------------------
- ; Script Start
- #include <GUIConstantsEx.au3>
- Func menu()
- Local $Button_1, $Button_2, $Button_4, $Button_3, $Button_5, $Button_6, $Button_7, $Button_8, $Button_9, $msg
- GuiCreate("MENY", 120, 230)
- Opt("GUICoordMode", 1)
- $Button_1 = GuiCtrlCreateButton("Firefox", 10, 5, 100, 20)
- $Button_2 = GuiCtrlCreateButton("Calc", 10, 30, 100, 20)
- $Button_3 = GuiCtrlCreateButton("Chrome", 10, 55, 100, 20)
- $Button_4 = GuiCtrlCreateButton("iExplorer", 10, 80, 100, 20)
- $Button_5 = GuiCtrlCreateButton("Paint", 10, 105 , 100, 20)
- $Button_6 = GuiCtrlCreateButton("Skype", 10, 130 , 100, 20)
- $Button_7 = GuiCtrlCreateButton("Notepad", 10, 155 , 100, 20)
- $Button_8 = GuiCtrlCreateButton("Explorer", 10, 180, 100, 20)
- $Button_9 = GuiCtrlCreateButton("Taskmanager", 10, 205, 100, 20)
- GUISetState()
- ; Run the GUI until the dialog is closed
- While 1
- $msg = GUIGetMsg()
- Select
- Case $msg = $GUI_EVENT_CLOSE
- ExitLoop
- Case $msg = $Button_1
- Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe")
- Case $msg = $Button_2
- Run('calc.exe')
- Case $msg = $Button_3
- run(@ProgramFilesDir & "\Google\Chrome\Application\chrome.exe")
- Case $msg = $Button_4
- Run(@ProgramFilesDir & "\Internet Explorer\iexplore.exe")
- Case $msg = $Button_5
- Run("mspaint.exe")
- Case $msg = $Button_6
- Run(@ProgramFilesDir & "\Skype\Phone\Skype.exe")
- Case $msg = $Button_7
- Run('Notepad.exe')
- Case $msg = $Button_8
- Run('explorer.exe')
- Case $msg = $Button_9
- Run('taskmgr.exe')
- EndSelect
- WEnd
- EndFunc
- Func Terminate()
- Exit 0
- EndFunc
- HotKeySet("+z","menu")
- HotKeySet("+x", "Terminate")
- While 1
- Sleep(100)
- WEnd
Add Comment
Please, Sign In to add comment