Replacing a key (Click & Drag)
Posted: 29 May 2018, 15:39
Hi, so my mouse LButton recently broke, so until I get a new mouse, I had the idea to map it to another button (MB4/5). I can use the touchpad for emergencies, but it really annoys me. I have the following code, which works:
However, this doesn't work in some programs, and the drag doesn't work either. Is there any way I could make it drag ? I also tried :
But the thing is, this codes makes it that when I click, it starts a drag, so I can't single click with it. Any way I could fix that and correctly make a script to replace my main button ?
Code: Select all
*XButton1:: Send {LButton}
Code: Select all
$XButton1::
{
toggle:=!toggle
if (toggle)
{
sendinput, {LButton down}
}
else
{
sendinput, {LButton up}
}
}
return