Page 1 of 1

Mouse Double-Click

PostPosted: Mon Dec 06, 2010 4:08 pm
by SpiritualMadMan
I am having trouble recording Mouse Double-Clicks.

Seems all the Recorder is seeing is the Mouse Down and Mouse-Up events not a Double-Click.

The System *is* seeing the Double-Clicks.

Is there anything I can do to get Recorder to "see" the mouse Double-Clicks or am I "stuck" with having to manually edit the script after the fact?

(Assuming, I can find the correct location to edit.)

Re: Mouse Double-Click

PostPosted: Mon Dec 13, 2010 7:15 pm
by john
Hello-

The recorder will indeed record a double-click as two separate clicks. During playback, the recorder may produce the two clicks slower than that recorded. To fix this, you can either reduce the delay (not recommended) in the recorded SetDelay command, or replace the four single MouseClicks recorded with a single MouseClick with a 3 (double-click) as the third parameter:

Code: Select all
MainWin("Untitled - Notepad","Notepad").MouseClick(0,1573,-28,1);
MainWin("Untitled - Notepad","Notepad").MouseClick(0,1573,-28,2);
MainWin("Untitled - Notepad","Notepad").MouseClick(0,1573,-28,1);
MainWin("Untitled - Notepad","Notepad").MouseClick(0,1573,-28,2);

becomes

Code: Select all
MainWin("Untitled - Notepad","Notepad").MouseClick(0,1573,-28,3);


-John