copyright Posted September 17, 2004 Share Posted September 17, 2004 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 More sharing options...
Valik Posted September 17, 2004 Share Posted September 17, 2004 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). Link to comment Share on other sites More sharing options...
copyright Posted September 17, 2004 Author Share Posted September 17, 2004 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 ? Link to comment Share on other sites More sharing options...
Valik Posted September 17, 2004 Share Posted September 17, 2004 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now