ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Skoad on February 23, 2012, 11:19:59 PM
-
I feel horribly stupid asking this. I have been away for so long I hardly remember how to spell UO. :P
How do I find the location of a button on a gump? Im not seeing it show up anywhere on EUO. I see the gump size and all that, but when clicking a button (make last/smelt for example) nothing new shows up on EUO.
Thanks in advance.
-
When i remind right, you need to scan via ocr and apply the location if you want do it automatic.
If you want to apply it manualy once per button (like to write down for script) you can do following:
Get Position:
1) Open Gump
2) Execute this Code in easyuo :
contpos 0 0
stop
3) Your Container moved to the 0\0 axis now move your mouse to the button
4) Read your Mouse Position and save x\y axis.
Use Position:
1) Open Gump
2) save the Mouse Coords you got from the other part with your #contpos
set %x #contposx + 100
set %y #contposy + 150
3) Execute Click command
click %x %y
voila you can click on the Buttons.
Stupid way but always works:)
Crome
-
Sounds great. Thanks a lot. :P
- Will rep when I have enough posts.
-
I believe there's a certain Administrator here who goes by the handle "TrailMyx" who wrote the most awesomest tool for gleaning this type of information.
I also believe that if you were to search out the snippits, specifically HERE (http://www.scriptuo.com/index.php?topic=505.0) you would find that tool.
-
I believe there's a certain Administrator here who goes by the handle "TrailMyx" who wrote the most awesomest tool for gleaning this type of information.
I also believe that if you were to search out the snippits, specifically HERE (http://www.scriptuo.com/index.php?topic=505.0) you would find that tool.
I checked first for that Post but missed where it laid. So i showed the manual way. Thanks for pulling up Cerv!
-
Thanks again guys. I promised I searched around before asking too lol. I went through the tutorial section and snippet, but obviously passed right over it.
After 6ish years of not scripting, I thought it would be like riding a bike.. However, it wasnt. :P