williamk Posted January 16, 2009 Share Posted January 16, 2009 I have a program called workforce Connect. I want to write a script that automates a process. Basically when the program pops up a combo box I want the script to make a specific selection in the combo box and then click OK. Should be easy. So far I have: shellExecute('c:\kronos\connect\knx.exe', '/run="\\kronos-p\Connect$\Payroll.KNI" /wait') winwait ("Select Text for Field") ControlSend("Select Text for Field","",,"PR") This runs the program, waits for the combo box to come up, but the ControlSend is not working. I have attached a file with all the control info from AutoIt Window Info. What am I doing wrong?workforcewindow.bmp Link to comment Share on other sites More sharing options...
FireFox Posted January 16, 2009 Share Posted January 16, 2009 @williamK ControlSend("Select Text For Field", '', "[CLASS:TTntComboBox.UnicodeClass]","PR") Cheers, FireFox. 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