sl_alagappan Posted September 1, 2004 Share Posted September 1, 2004 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? Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 1, 2004 Administrators Share Posted September 1, 2004 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
sl_alagappan Posted September 1, 2004 Author Share Posted September 1, 2004 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. Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 1, 2004 Administrators Share Posted September 1, 2004 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
sl_alagappan Posted September 1, 2004 Author Share Posted September 1, 2004 could be a valid reason.. 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