ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Coragin on October 11, 2009, 09:02:11 AM
-
Ok, I know the numbers to look for in SUO and EUO to find the x/y for a crafting gump.
But the numbers it gives me dont match up with other scripts out there, these numbers are an example...
x/y for makelast will be 120 / 450 in the script I am looking at, but when I compare with SUO/EUO it will come out as 90 / 500 or something weird. Am I looking at things wrong?
-
Ok, I know the numbers to look for in SUO and EUO to find the x/y for a crafting gump.
But the numbers it gives me dont match up with other scripts out there, these numbers are an example...
x/y for makelast will be 120 / 450 in the script I am looking at, but when I compare with SUO/EUO it will come out as 90 / 500 or something weird. Am I looking at things wrong?
Hi,
maybe I don't get this correct but to figure out the click position in any gump
I usually open a crafing gump manually and move it to the 0/0 position
I just check the #ContPosX and #ContPosY to be both 0.
Now I can use the lower display line of EUO or #CURSORX #CURSORY to get the values.
Eg the SA Crafing Gump Make Last Button has a centre value of 280 / 450.
Maybe it was the offset .. of your Desktop Setting .. most people have the gray
Menue Line (Maps/Paperdoll...) on the top .. and so you usually end up with a
difference ... when you don't calculate the #ContPos out of your click position
cu
-
When you log in a character the crafting gumps all reset to their original position. I've seen some scripts that jusy put the container back at that default position and I've seen some that put it at 0 0.
I like what Manwinc does and just tells his clicker to click at contposx + xxx and contposy + yyy where tha click happens in the right place no matter where the gump pops up.
-
yea i figured it out thanks guys.
contpos xxx xxx then do my click areas.
-
Thats not the optimal way of doing it Coragin.
The best way is to know the size of the container, then offset the clicks according to the containers size.
If you set the container to 0,0 and click a position on the screen, you'll eventually have a container move late, and you'll click the wrong spot. If you use the offsets, you just wait for the container to open, then without moving it you can click on the correct position.
I once had an excellent tutorial on this very subject. I'll see if I still have the pics saved.
-
I once had an excellent tutorial on this very subject. I'll see if I still have the pics saved.
Did you ever find the tutorial on this subject? I may need to look again but I couldn't find it anywhere.
-
I found the original unedited pic... I know I have a modified one someplace, still looking.
-
Thanks a lot, I'll keep an eye out for it.
-
COragin i've got two subs I'll give you. One is Click offset, the other is waiting for a gump to open.
-
Been reading up on this, trying to get Kal's Fullautologin script to work on Easyuo. I got it running with raw clicks at first, then got the #cont nailed down. I want to try to understand this more though. His old sub was:
sub clickgreen
set %x #contposx + 61
set %y #contposy + 456
click %x %y ; the green arrow
wait 5
return
Musta left my math at work. New cont size is 640_480 (adjusted already in script). Within that window, green arrow is 614, 446. So all I have to do is set the #contposx & #contposy + desired click location from easyuo lower window and off I go? Is it really that easy (punny ;D)?
I got it working, but still scratching my head a little. Kal's fullautologin is (almost)fully operational! (researching the global var he put in there)
-
Cor, the two subs that MWinc mentions are in the version of your SUO Crafter that I uploaded into the thread per your instructions. I didn't convert all of your weapon data, but I did convert Radiant Scimitar, and I think a couple of bows. I put it back up there for you to look at as seeing it in your script should make it pretty easy to understand. Take a look.
Also, in case you didn't catch it in the thread on another craft script or somewhere, Publish 65 changed a few gump sizes. BOD books and the craft gump in included. The Y coord on the Craft gump dropped from 507 to 497.
-
So all I have to do is set the #contposx & #contposy + desired click location from easyuo lower window and off I go? Is it really that easy?
Yep, it absolutely is that easy.
;)
X