I want to disable Left Mouse Button while this script, or hotkey, is active:
$XButton2::
Sleep, 10
Send, {7}
Sleep, 350
Return
Anyone know how to do this? I don't want to disable my whole keyboard or mouse with BlockInput.
Disable Left Mouse Button while script is active? BlockInput blocks too much.
-
- Posts: 57
- Joined: 26 Jul 2016, 21:31
Re: Disable Left Mouse Button while script is active? BlockInput blocks too much.
Hallo,
try:
try:
Code: Select all
$XButton2::
Hotkey, *LButton, Return
Sleep, 10
Send, {7}
Sleep, 350
Hotkey, *LButton, Off
Return:
Return
-
- Posts: 57
- Joined: 26 Jul 2016, 21:31
Re: Disable Left Mouse Button while script is active? BlockInput blocks too much.
Works perfectly, thanks!Rohwedder wrote:Hallo,
try:Code: Select all
$XButton2:: Hotkey, *LButton, Return Sleep, 10 Send, {7} Sleep, 350 Hotkey, *LButton, Off Return: Return
Who is online
Users browsing this forum: No registered users and 136 guests