Advertisement
t3h_m00kz

Init.ahk

Mar 6th, 2022
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;Initialization - don't know if I need all this shit but being safe;
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4.  
  5. #NoEnv
  6.     ;Avoids checking empty variables to see if
  7.     ;they are environment variables
  8.     ;(recommended for all new scripts).
  9.  
  10.  
  11. #SingleInstance, Force
  12.     ;Skips the dialog box and replaces the old
  13.     ;instance automatically, which is similar
  14.     ;in effect to the Reload command.
  15.  
  16.  
  17. #Persistent
  18.     ;Keeps a script permanently running (that
  19.     ;is, until the user closes it or ExitApp
  20.     ;is encountered).
  21.  
  22.  
  23. #InstallKeybdHook
  24.     ;Forces the unconditional installation of
  25.     ;the keyboard hook.
  26.  
  27.  
  28. #UseHook
  29.     ;Force the use of the hook for hotkeys
  30.     ;after this point.
  31.  
  32.  
  33. #KeyHistory, 500
  34.     ;Sets the maximum number of keyboard and
  35.     ;mouse events displayed by the KeyHistory
  36.     ;window. You can set it to 0 to disable
  37.     ;key history.
  38.        
  39.  
  40. #HotKeyInterval 1
  41.     ;Along with #MaxHotkeysPerInterval,
  42.     ;specifies the rate of hotkey activations
  43.     ;beyond which a warning dialog will be
  44.     ;displayed.
  45.    
  46.  
  47. #MaxHotkeysPerInterval 127
  48.     ;Along with #HotkeyInterval, specifies the
  49.     ;rate of hotkey activations beyond which a
  50.     ;warning dialog will be displayed.
  51.    
  52.  
  53. SetKeyDelay,-1
  54. ;SetKeyDelay,-1, 1
  55.     ;Sets the delay that will occur after each
  56.     ;keystroke sent by Send and ControlSend.
  57.    
  58.  
  59. SetControlDelay, -1
  60.     ;Sets the delay that will occur after each
  61.     ;control-modifying command.
  62.    
  63.  
  64. SetMouseDelay, -1
  65.     ;Sets the delay that will occur after each
  66.     ;mouse movement or click.
  67.    
  68.  
  69. SetWinDelay,-1
  70.     ;Sets the delay that will occur after each
  71.     ;windowing command, such as WinActivate.
  72.    
  73.  
  74. SendMode, Input
  75.     ;Switches to the SendInput method for Send,
  76.     ;SendRaw, Click, and MouseMove/Click/Drag.
  77.    
  78.  
  79. ;SendMode;, InputThenPlay
  80.     ;Same as above except that rather than
  81.     ;falling back to Event mode when SendInput
  82.     ;is unavailable, it reverts to Play mode
  83.     ;(below). This also causes the SendInput
  84.     ;command itself to revert to Play mode when
  85.     ;SendInput is unavailable.
  86.    
  87.  
  88. ;#MaxThreadsPerHotkey 10
  89.     ;The maximum number of threads that can be
  90.     ;launched for a given hotkey/hotstring
  91.     ;subroutine (limit 255).
  92.  
  93.  
  94. ;PID; := DllCall("GetCurrentProcessId")
  95.     ;Process, Priority, %PID%, High
  96.  
  97.  
  98. #MenuMaskKey vk07
  99.     ;Prevents random CTRL presses
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement