Jump to content
Sign in to follow this  
Tomer

Get Control ID

Recommended Posts

Tomer

Hi all :D I am new to this program. :D 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.

Share this post


Link to post
Share on other sites
newbiescripter

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

Share this post


Link to post
Share on other sites
Tomer

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 :D

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 :D

Thx Tomer.

Share this post


Link to post
Share on other sites
newbiescripter

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

Share this post


Link to post
Share on other sites
Tomer

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 :D?

any ideas..

Thank you for your help

Tomer.

Share this post


Link to post
Share on other sites
newbiescripter

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

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  

×