Mouse Double-Click

General discussion about the Phantom Automation Language and related tools.

Mouse Double-Click

Postby SpiritualMadMan on Mon Dec 06, 2010 4:08 pm

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.)
SpiritualMadMan
 
Posts: 20
Joined: Mon Dec 06, 2010 4:02 pm

Re: Mouse Double-Click

Postby john on Mon Dec 13, 2010 7:15 pm

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
john
 
Posts: 27
Joined: Wed Apr 22, 2009 12:32 pm


Return to Phantom

Who is online

Users browsing this forum: No registered users and 2 guests

cron