Jump to content

dynamic classname


copyright
 Share

Recommended Posts

im trying to controlsend to a certain editbox but the classname keeps changing ranging from: TTntEdit.UnicodeClass1 to TTntEdit.UnicodeClass18

i made the bot but once the editbox's class name changes it wont work anymore. what to do !? please no mouse click or activate windows.. or any of that crap.. is there a certain math problem i can do to check what the class name is other then using the spy ?

Link to comment
Share on other sites

You have the coordinates for the control ahead of time, so you know where it is. Then, you look at the coordinates for all the controls ranging from TTntEdit.UnicodeClass1 to TTntEdit.UnicodeClass18. Once you find the control that has the coordinates you are looking for, it's relatively safe to assume this is the control you are looking for. Now you have programmatically determined the correct control at run-time, so you now know which control to send to.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...