Page 1 of 1

long M1/left Click press

Posted: 21 Oct 2019, 06:57
by ac1234
hi i have this script but its not working how i would like it to work.
i want to be able to press "3" and for it to keep holding left click of my mouse and when i press "3" again it lets go.
also at the same time i want to be able to see it with tip tool.
if anyone can help me edit it that will be great.
(if you can copy paste the whole thing and fix where needed and paste the whole correct script it will be appropriated.

Code: Select all

#MaxThreadsPerHotkey 2
3::
toggle := !toggle
	if (toggle)
		ToolTip, M1 HOLD, 100, 150
	while (toggle)
	{
    alt := not alt
    if (alt)
    {
        click down
    }
  else
    {
        click up
    }
    
	}
	ToolTip
Return