ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Coragin on December 29, 2009, 12:49:47 AM
-
whats the command?
click #contx x #conty y
and it will basicly click the top most gump at that position? obviously x and y mean the number, like 435 300 ect ect...
click #contx 435 #conty 300
I ask because I had a complaint about my armor crafter and when a gump is moved it still clicks same spot on screen, not the gump. I am looking for an easy way to fix this without moving gumps via contpos 50 50
-
Hi,
I am not sure if I got your question correct...
but .... click #contx x #conty y
does nothing you expect it might do ...
if you like to make clicks Gump position independant you have to use something like this:
; Set the offsets of your clickposition in your gump
Set %offsetX 435
Set %offsetY 300
; Mod the clickposition with the actual Gump Location on screen (#ConPos)
Set %clickposX #ContPosX + %offsetX
Set %clickposY #ContPosY + %offsetY
; Finally run the click command
click %clickposx %clickposY
Most people use a kind of a SUB to simply read out the gump name or size,
to make sure it is the correct gump and modify the click position before
they perform the click command
cu
-
Yep thats it, I figured it out lastnight when no on replied lol
-
; Set the offsets of your clickposition in your gump
Where can i get those offset cordinates?
-
; Set the offsets of your clickposition in your gump
[/quote]
Where can i get those offset cordinates?
This "offset" positions are the areas of the buttons you like to click,
when I need to find them I put the gump to the left upper screencorner
(this is sually 0,0 position) and movethe mouse to the button area.
Now you can check the EUOX buttomline 4th box from the left or check the
data in the #CursorPos lines.
cu
-
This "offset" positions are the areas of the buttons you like to click,
when I need to find them I put the gump to the left upper screencorner
(this is sually 0,0 position) and movethe mouse to the button area.
Now you can check the EUOX buttomline 4th box from the left or check the
data in the #CursorPos lines.
cu
Thank you for the quick and simple explanation.
-
Where can i get those offset cordinates?
I wrote a script that does the coordinate generation for you:
http://www.scriptuo.com/index.php?topic=505.0;highlight=offset+click+generator
-
what I do is write this at the top of a page.
ContPos 0 0
halt
that moves my most top menu to pos 0 0
then I record all of the button locations I need
that fits well with the most common script
Sub ClickOffset
set %x #Contposx + %Offsetx
set %y #contPosY + %OffsetY
click %x %y F
Return