Tomer Posted April 29, 2008 Share Posted April 29, 2008 Hi all I am new to this program. but I like it so far. I want to click on a radio button, the problem is that every time I load my program this radio button gets a different ID number . How can I get the ID and then use that VAR in order to click on that Radio? Thank People Tomer. Link to comment Share on other sites More sharing options...
newbiescripter Posted April 29, 2008 Share Posted April 29, 2008 Is the text or the classnameNN the same everytime? if not you could might use the controlclick coords insted. if there is you could use a better method than controlclick coords Link to comment Share on other sites More sharing options...
Tomer Posted April 29, 2008 Author Share Posted April 29, 2008 Is the text or the classnameNN the same everytime? if not you could might use the controlclick coords insted. if there is you could use a better method than controlclick coords Thx yes, they are the same everytime but in the command i dont have "ClassnameNN" ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] ) I tried to use that command with out ControlID but it did nothing Thx Tomer. Link to comment Share on other sites More sharing options...
newbiescripter Posted April 29, 2008 Share Posted April 29, 2008 ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] ) Just type in the classnameNN in quotes insted of ControlID. example: ControlClick ( "title", "text", "classnameNN" [, button [, clicks [, x [, y ]]]] ) Regards Link to comment Share on other sites More sharing options...
Tomer Posted April 29, 2008 Author Share Posted April 29, 2008 Just type in the classnameNN in quotes insted of ControlID. example: ControlClick ( "title", "text", "classnameNN" [, button [, clicks [, x [, y ]]]] ) Regards ControlClick ( "Config Form", "", "WindowsForms10.BUTTON.app.0.378734a6" ) thats the way i am writing, but its not working my Check Box is not getting checked ? any ideas.. Thank you for your help Tomer. Link to comment Share on other sites More sharing options...
newbiescripter Posted April 29, 2008 Share Posted April 29, 2008 Underneth I've made an example which show you that it works in that way. ;First open up notesbook ;then make alot of enters so that you can see where it has pressed. While 1 Sleep(2000) ControlClick("Unavngivet -" , "" , "Edit1" , "left" , 1 , 40 , 494) WEnd It could might be that the classnameNN is also changing? Which game are you trying to controlclick in? Regards 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