Difference between revisions of "UO.Click"

From OpenEUO
Jump to: navigation, search
Line 27: Line 27:
  
 
[[UO.CursorY]]
 
[[UO.CursorY]]
 +
 +
[[UO.HideItem]]
  
 
[[UO.Key]]
 
[[UO.Key]]
 +
 +
[[UO.Popup]]
 +
 +
[[UO.SetShop]]
 +
 +
[[UO.StatBar]]

Revision as of 13:37, 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]])

Getmouse

UO.CursorX

UO.CursorY

UO.HideItem

UO.Key

UO.Popup

UO.SetShop

UO.StatBar