Sign in to follow this  
Followers 0
copyright

dynamic classname

4 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



try ControlGetPos and compare it to known position.

Lar.

<{POST_SNAPBACK}>

Hmmm, very clever. This might help me with a problem I had (Stupid .NET grumble grumble grumble).

Share this post


Link to post
Share on other sites

Hmmm, very clever.  This might help me with a problem I had (Stupid .NET grumble grumble grumble).

<{POST_SNAPBACK}>

but how would the controls position allow me to ControlSend something to it ?

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0