Jump to content

Get Control ID


 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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...