Lbutton::

PixelSearch, Px, Py,0,1920, 1080,0, 0x9d6346, 3, Fast
Mousemove, %px%,%py%
Send Lbutton
Sleep 200
Mousemove, %px%,%py%
Return



what do i need to insert to auto toggle on and off.something like when i click left mouse button it activates it and insert ends or closes the script,thanks