Author Topic: Gump button location  (Read 3468 times)

0 Members and 1 Guest are viewing this topic.

Offline SkoadTopic starter

  • Jr. Member
  • **
  • Posts: 33
  • Activity:
    0%
  • Reputation Power: 1
  • Skoad has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Gump button location
« on: February 23, 2012, 11:19:59 PM »
0
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.

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Gump button location
« Reply #1 on: February 24, 2012, 12:26:38 AM »
0
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

Offline SkoadTopic starter

  • Jr. Member
  • **
  • Posts: 33
  • Activity:
    0%
  • Reputation Power: 1
  • Skoad has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Gump button location
« Reply #2 on: February 24, 2012, 07:38:08 AM »
0
Sounds great. Thanks a lot. :P

 - Will rep when I have enough posts.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Gump button location
« Reply #3 on: February 24, 2012, 08:06:14 AM »
0
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 you would find that tool.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Gump button location
« Reply #4 on: February 24, 2012, 08:46:05 AM »
0
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 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!

Offline SkoadTopic starter

  • Jr. Member
  • **
  • Posts: 33
  • Activity:
    0%
  • Reputation Power: 1
  • Skoad has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Gump button location
« Reply #5 on: February 24, 2012, 11:23:14 AM »
0
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

Tags: