ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Skoad on February 23, 2012, 11:19:59 PM

Title: Gump button location
Post 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.
Title: Re: Gump button location
Post by: Crome969 on February 24, 2012, 12:26:38 AM
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 :
Code: [Select]
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
Code: [Select]
set %x #contposx + 100
set %y #contposy + 150
3) Execute Click command
Code: [Select]
click %x %yvoila you can click on the Buttons.
Stupid way but always works:)

Crome
Title: Re: Gump button location
Post by: Skoad on February 24, 2012, 07:38:08 AM
Sounds great. Thanks a lot. :P

 - Will rep when I have enough posts.
Title: Re: Gump button location
Post by: Cerveza on February 24, 2012, 08:06:14 AM
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.
Title: Re: Gump button location
Post by: Crome969 on February 24, 2012, 08:46:05 AM
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!
Title: Re: Gump button location
Post by: Skoad on February 24, 2012, 11:23:14 AM
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