Created
May 28, 2021 21:12
-
-
Save cpriest/40bf000c84d709f8eb4252af4acb1ffe to your computer and use it in GitHub Desktop.
Right click script for various uses.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Globals | |
#MaxHotkeysPerInterval 500 | |
#NoEnv | |
; #MenuMaskKey vk07 ; vk07 is unassigned. | |
#InstallKeybdHook | |
#UseHook | |
#SingleInstance Force | |
SendMode Input | |
SetWorkingDir, %A_ScriptDir% | |
Active := 0 | |
; Press Ctrl + Shift + F1 to activate Clicking Right every 400ms | |
; Press Escape to deactivate | |
; Note: when you run this script, it will have a tray icon with an H, you exit the | |
; script you can just right-click the tray icon and exit. | |
; NOTE: This will function in all applications, even if you switch it will still be trying to right-click | |
; Escape should always stop it. | |
^+F1:: | |
Active := 1 | |
while (Active) { | |
Click Right | |
Sleep 400 | |
} | |
return | |
#if Active | |
Esc:: | |
Active := 0 | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment