Difference between revisions of "UO.Click"

From OpenEUO
Jump to: navigation, search
(Created page with "'''EUOX Equivelent:''' Click http://wiki.easyuo.com/index.php/Click '''Synopsis:''' UO.Click(nX,nY,bLeft,bDown,bUp,bMC) '''Definition:''' Mimics a click of the mouse in a ...")
 
Line 21: Line 21:
  
 
(Original Source:Swift74d[[http://www.easyuo.com/forum/viewtopic.php?t=43220]])
 
(Original Source:Swift74d[[http://www.easyuo.com/forum/viewtopic.php?t=43220]])
 +
 +
[[UO.Key]]

Revision as of 12:25, 9 October 2010

EUOX Equivelent: Click [[1]]

Synopsis: UO.Click(nX,nY,bLeft,bDown,bUp,bMC)

Definition: Mimics a click of the mouse in a specific position on the screen. So if you want to click something, the mouse button should go down and up. If you want to drag something, the mouse button should only go down but not up. Dropping means only up.

nX = x screen coords 
nY = y screen coords 
bLeft = true/false (true will left click, false will right click) 
bDown= true/false (true will "push" the mouse button down, false will do nothing) 
bUp = true/false (true will "lift/release" the mouse button, false will do nothing) 
bMc = true/false (true will move the cursor, false will not) 

Examples:

--will right click at screen coords 400x 300y 
UO.Click(400,300,false,true,true,false)

--Moving an item 
UO.Click(x1,y1,true,true,false,true)  
UO.Click(x2,y2,true,false,true,true) 

(Original Source:Swift74d[[2]])

UO.Key