Sign in to follow this  
Followers 0
sl_alagappan

How to use Control ID in Control...() commands

5 posts in this topic

the control id seem to be of in numeric form whereas the "classnameNN" is in string format.

any example of how to use control id instead of control names in control...() commands?

Share this post


Link to post
Share on other sites



the control id seem to be of in numeric form whereas the "classnameNN" is in string format.

any example of how to use control id instead of control names in control...() commands?

I think you just use strings containing numbers like "23". AutoItX converts this to a number and if it is valid (> 0) it tries to use it as a control ID.

Share this post


Link to post
Share on other sites

Thanks Jon.

but found that, when I use ControlID for my Ramco application ( see my other postings in AutoitX forum reguarding ControlSend() ), crashes while sending {ENTER} keystroke.

intResult=cautiot.controlsend("Receipt","","1021","{ENTER}")

But when tested with notepad, no problem.

Could be problem with the specific application that I use. Never mind, since there is no problem when using with ControlName, i can manage.

Share this post


Link to post
Share on other sites

Thanks Jon.

but found that, when I use ControlID for my Ramco application ( see my other postings in AutoitX forum reguarding ControlSend() ), crashes while sending {ENTER} keystroke.

intResult=cautiot.controlsend("Receipt","","1021","{ENTER}")

But when tested with notepad, no problem.

Could be problem with the specific application that I use. Never mind, since there is no problem when using with ControlName, i can manage.

It's entirely possible that there is another control on the page with the same ID and it could be that _that_ control crashes when ENTER is sent. If it works when you use some other method than the control ID then that seems to support that.

Share this post


Link to post
Share on other sites

could be a valid reason..

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