I found a fix once, involving a toggle somehow. I lost the script

Yeah ya know that problem where if you assign rbutton to a function, it for some reason stays down (im assuming) therefore making the button broken until logout? I cant be the only one. I need this fixed and ive looked forever for that ONE script that ONE time that I lost.
To elaborate, I want to make double right click do something. Sound simple...ITS NOT. I managed to get the double click and single click to work (easy cheesy) and it seems to keep working...but I lose drag functionallity. Im going crazy, its just such a simple idea. But it fails me every time. Heres what I got, plz help, youre the best #1 pro scriptor for lyfe best in the league Grandmaster ty
Code: Select all
Rbutton::goto rbutton2xclick
Rbutton2xclick:
;
;it gives you half a second to either complete the double click
;or to complete the press-and-hold cycle. If neither happens
;you get a normal single click response.
;
keywait, rbutton, t0.5
if errorlevel = 1
{
;
;This registers a 'press-n-hold' on the right mouse button.
;ADD YOUR FUNCTIONS HERE, for instance
;you could do a control-n to open a new IE window, as below
MouseClick, right,,,,,d <----------------------------------------------------------------THIS
}
else
keywait, rbutton, d, t0.5
if errorlevel = 0
{
;
;this registers a 'double click' on the right mouse button.
;add your functions here, for instance I use it below
;to do a shift-left click which opens a link in its own window
;
msgbox 2xclick
return
}
else
;
;if neither of the above heppen, send a regular single click
;
mouseclick, right
return
rbutton up::MouseClick,right,,,,,u <---------------------------------------------------AND THIS = My best guess before I gave up