Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Hotkey 1
- ;check if program is running
- ; - if it is, kill it and start a new instance
- ; - if not, start a new instance
- ^!1::
- IfWinExist, ("ahk_exe ImgBurn.exe")
- {
- Process, Close, ImgBurn.exe
- WinWaitNotActive, ("ahk_exe ImgBurn.exe")
- Run C:\Program Files\ImgBurn\ImgBurn.exe
- } else {
- Run C:\Program Files\ImgBurn\ImgBurn.exe
- return
- }
- ;Hotkey2
- ;duplicate process of HK1, but with different program
- ;create password activated functions
- ;testing area
- ^!0:: Process, Close, notepad.exe
Advertisement
Add Comment
Please, Sign In to add comment