So I am trying to make a script for D3, where if I press a button, it holds down Right mouse button, and if I press it again, it releses the button.
I got a script to work on the desktop and other, but it wont work on D3.. Anyone that can help me with this?
Also the script is acting abit weird some times.. If anyone know any inprovements I would be thankful to hear.
Here is my code so far:
Code: Select all
Escape::Reload
RButton::
KeyDown := !KeyDown
If KeyDown
{
SendInput {RButton down}
}
Else
{
SendInput {RButton up}
}
return