mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Windows scripts
This commit is contained in:
28
Windows/Scripts/LeftToRightMouseClick.ahk
Normal file
28
Windows/Scripts/LeftToRightMouseClick.ahk
Normal file
@ -0,0 +1,28 @@
|
||||
#Requires AutoHotkey v2.0
|
||||
Persistent
|
||||
; <https://www.autohotkey.com/boards/viewtopic.php?t=38761>
|
||||
|
||||
HotKey("LButton", LeftClickActions)
|
||||
LeftClickActions(key)
|
||||
{
|
||||
Send "{Click Right}"
|
||||
InfoTooltip(false)
|
||||
HotKey("LButton", "Off")
|
||||
}
|
||||
HotKey("LButton", "Off")
|
||||
|
||||
OnMessage(0x404, AHK_NOTIFYICON)
|
||||
AHK_NOTIFYICON(wParam, lParam, uMsg, hWnd)
|
||||
{
|
||||
if (lParam = 0x201) ; WM_LBUTTONDOWN
|
||||
{
|
||||
HotKey("LButton", "On")
|
||||
InfoTooltip(true)
|
||||
}
|
||||
}
|
||||
|
||||
InfoTooltip(status)
|
||||
{
|
||||
ToolTip (status ? "Right click action is temporarily active." : "Right cick action is now disabled.")
|
||||
SetTimer () => ToolTip(), -1000
|
||||
}
|
Reference in New Issue
Block a user