tengwer 0 Posted April 10, 2010 I've tried everything I can think of to create a simple script that will call a function when the left mouse button is doubleclicked. But I have run into every problem from the script working but I'm not able to click an drag anymore with it running to it only working once and then not at all. This is the script I currently have: #include <MouseSetOnEvent_UDF.au3> $x = 0 _MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT , "Click") Sleep(100) _MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT) ;Enable mouse button back. While 1 $x += 1 sleep(100) WEnd Func Click() If $x < 3 Then DoubleClick() $x = 0 ;MsgBox(4096,"","Click",2) EndFunc Func DoubleClick() MsgBox(4096,"","DoubleClick",2) $x = 0 EndFunc It only works on the first double click and then doen't do anything. Can anyone help? Share this post Link to post Share on other sites
tengwer 0 Posted April 10, 2010 FYI I already tried the parameter $MOUSE_PRIMARYDBLCLK_EVENT and it did not work at all. Share this post Link to post Share on other sites