Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetTitleMatchMode, 2
- ;Declarations
- suspendWinKey = 0
- ; Start-up Dialogue
- MsgBox,,Welcome to HarUtils,
- (
- This program will create some custom keyboard combinations
- Windows + C to run Calculator
- Windows + Q to run Evernote
- Windows + N to run Notepad++
- Windows + S to run Everything
- Windows + W to run Multiple ROBLOX, as well as to close it
- --------------------------------------------------------------------------------------
- Highlight text then press Ctrl + Shift + C to search it
- --------------------------------------------------------------------------------------
- Windows + F5 to reload the script and to show this dialogue again
- Windows + Shift + Numpad1 to suspend hotkeys for this program
- Windows + Shift + Numpad2 to pause this program
- Windows + Shift + Numpad3 to exit this program
- Ctrl + Shift + Numpad4 to suspend Windows Key and Menu Key/Apps Key
- (This message will auto-close in 5 seconds)
- Credits to: Haru Arata for making this neat program ^_^
- ),5
- return
- ; -----HOTKEYS-----
- ; Windows + C to run Calculator
- #c::
- IfWinExist,Calculator
- {
- WinActivate,Calculator
- }
- IfWinNotExist,Calculator
- {
- run "C:\Windows\System32\calc.exe"
- }
- return
- ; Windows + N to run Notepad++
- #n::
- IfWinExist, - Notepad++
- {
- WinActivate, - Notepad++
- }
- IfWinNotExist, - Notepad++
- {
- run "C:\Program Files (x86)\Notepad++\notepad++.exe"
- }
- return
- ; Windows + S to run Everything
- #s::
- IfWinExist,Everything
- {
- WinActivate,Everything
- }
- IfWinNotExist,Everything
- {
- run "C:\Program Files\Everything\Everything.exe"
- }
- return
- ; Windows + W to run Multiple ROBLOX, as well as to close it
- #w::
- IfWinNotExist,Multiple Game Instance
- {
- run "C:\Users\HaruArata\Desktop\SAM FOLDER REACQUIRABLE\ROBLOX\MISC\Multiple_ROBLOX"
- }
- ; In this case, IfWinNotExist is checked before IfWinExist so that IfWinExist won't close it only for IfWinNotExist to reopen immidiately
- IfWinExist,Multiple Game Instance
- {
- WinClose,Multiple Game Instance
- }
- return
- ; Windows + Q to run Evernote
- #q::
- IfWinExist, - Evernote
- {
- WinActivate, - Evernote
- }
- IfWinNotExist, - Evernote
- {
- run "F:\Evernote\Evernote.exe"
- }
- return
- ; Highlight text then press Ctrl + Shift + C to search it
- ^+c::
- {
- send, ^c
- sleep 50
- run, http://www.google.com/search?q=%clipboard%
- return
- }
- ; Windows + F5 to reload the script or to show this dialogue again
- #F5::reload
- ; Windows + Shift + Numpad3 to exit this program
- #NumpadPgDn::exitapp
- ; Windows + Shift + Numpad1 to suspend hotkeys for this program
- #NumpadEnd::suspend
- ; Windows + Shift + Numpad2 to pause this program
- #NumpadDown::pause
- ; Ctrl + Shift + Numpad4 to suspend Windows Key and Menu Key/Apps Key
- ^NumpadLeft::
- if suspendWinKey = 0
- {
- suspendWinKey = 1
- return
- }
- else
- suspendWinKey = 0
- return
- ; Checks if LWin is disabled
- $LWin::
- if suspendWinKey = 0
- {
- send {LWin}
- return
- }
- else
- return
- ; Checks if RWin is disabled
- $RWin::
- if suspendWinKey = 0
- {
- send {RWin}
- return
- }
- else
- return
- ; Checks if AppsKey is disabled
- $AppsKey::
- if suspendWinKey = 0
- {
- send {AppsKey}
- return
- }
- else
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement