Advertisement
Superszean

HarUtils 1/28/2020

Jan 28th, 2020
744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SetTitleMatchMode, 2
  2.  
  3. ;Declarations
  4. suspendWinKey = 0
  5.  
  6. ; Start-up Dialogue
  7. MsgBox,,Welcome to HarUtils,
  8.     (
  9. This program will create some custom keyboard combinations
  10.  
  11. Windows + C to run Calculator
  12.  
  13. Windows + Q to run Evernote
  14.  
  15. Windows + N to run Notepad++
  16.  
  17. Windows + S to run Everything
  18.  
  19. Windows + W to run Multiple ROBLOX, as well as to close it
  20.  
  21. --------------------------------------------------------------------------------------
  22.  
  23. Highlight text then press Ctrl + Shift + C to search it
  24.  
  25. --------------------------------------------------------------------------------------
  26.  
  27. Windows + F5 to reload the script and to show this dialogue again
  28.  
  29. Windows + Shift + Numpad1 to suspend hotkeys for this program
  30.  
  31. Windows + Shift + Numpad2 to pause this program
  32.  
  33. Windows + Shift + Numpad3 to exit this program
  34.  
  35. Ctrl + Shift + Numpad4 to suspend Windows Key and Menu Key/Apps Key
  36.  
  37. (This message will auto-close in 5 seconds)
  38.  
  39. Credits to: Haru Arata for making this neat program ^_^
  40.     ),5
  41. return
  42.  
  43. ; -----HOTKEYS-----
  44.  
  45. ; Windows + C to run Calculator
  46. #c::
  47. IfWinExist,Calculator
  48. {
  49. WinActivate,Calculator
  50. }
  51. IfWinNotExist,Calculator
  52. {
  53. run "C:\Windows\System32\calc.exe"
  54. }
  55. return
  56.  
  57. ; Windows + N to run Notepad++
  58. #n::
  59. IfWinExist, - Notepad++
  60. {
  61. WinActivate, - Notepad++
  62. }
  63. IfWinNotExist, - Notepad++
  64. {
  65. run "C:\Program Files (x86)\Notepad++\notepad++.exe"
  66. }
  67. return
  68.  
  69. ; Windows + S to run Everything
  70. #s::
  71. IfWinExist,Everything
  72. {
  73. WinActivate,Everything
  74. }
  75. IfWinNotExist,Everything
  76. {
  77. run "C:\Program Files\Everything\Everything.exe"
  78. }
  79. return
  80.  
  81. ; Windows + W to run Multiple ROBLOX, as well as to close it
  82. #w::
  83. IfWinNotExist,Multiple Game Instance
  84. {
  85. run "C:\Users\HaruArata\Desktop\SAM FOLDER REACQUIRABLE\ROBLOX\MISC\Multiple_ROBLOX"
  86. }
  87. ; In this case, IfWinNotExist is checked before IfWinExist so that IfWinExist won't close it only for IfWinNotExist to reopen immidiately
  88. IfWinExist,Multiple Game Instance
  89. {
  90. WinClose,Multiple Game Instance
  91. }
  92. return
  93.  
  94. ; Windows + Q to run Evernote
  95. #q::
  96. IfWinExist, - Evernote
  97. {
  98. WinActivate, - Evernote
  99. }
  100. IfWinNotExist, - Evernote
  101. {
  102. run "F:\Evernote\Evernote.exe"
  103. }
  104. return
  105.  
  106. ; Highlight text then press Ctrl + Shift + C to search it
  107. ^+c::
  108. {
  109. send, ^c
  110. sleep 50
  111. run, http://www.google.com/search?q=%clipboard%
  112. return
  113. }
  114.  
  115. ; Windows + F5 to reload the script or to show this dialogue again
  116. #F5::reload
  117.  
  118. ; Windows + Shift + Numpad3 to exit this program
  119. #NumpadPgDn::exitapp
  120.  
  121. ; Windows + Shift + Numpad1 to suspend hotkeys for this program
  122. #NumpadEnd::suspend
  123.  
  124. ; Windows + Shift + Numpad2 to pause this program
  125. #NumpadDown::pause
  126.  
  127. ; Ctrl + Shift + Numpad4 to suspend Windows Key and Menu Key/Apps Key
  128. ^NumpadLeft::
  129. if suspendWinKey = 0
  130. {
  131. suspendWinKey = 1
  132. return
  133. }
  134. else
  135. suspendWinKey = 0
  136. return
  137.  
  138. ; Checks if LWin is disabled
  139. $LWin::
  140. if suspendWinKey = 0
  141. {
  142. send {LWin}
  143. return
  144. }
  145. else
  146. return
  147.  
  148. ; Checks if RWin is disabled
  149. $RWin::
  150. if suspendWinKey = 0
  151. {
  152. send {RWin}
  153. return
  154. }
  155. else
  156. return
  157.  
  158. ; Checks if AppsKey is disabled
  159. $AppsKey::
  160. if suspendWinKey = 0
  161. {
  162. send {AppsKey}
  163. return
  164. }
  165. else
  166. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement