I am new to the forum and to the AHK scripting. I have made very simple script to disable and enable my mouse with different keys but it doesn't work. Have you got any sugestion what I am doing wrong? Please help.
What I want to do?
After pressing f key I want to disable my mouse and after presssing combination of ctrl+c I want to enable my mouse.
Code: Select all
f::
{
BlockTheMouse := true
BlockInput MouseMove
return
}
if (BlockTheMouse)
{
LButton::
RButton::
MButton::
WheelUp::
WheelDown::
return
}
else
{
^c::
BlockInput MouseMoveOff
BlockTheMouse:= false
return
}