User123 Posted January 18, 2010 Share Posted January 18, 2010 Am trying to automate one of my installation process with the following steps: drive="D" WinWait("My Installation","Select Installation") ControlSend("My Installation","","","!f") WinWait("My Installation","Select Installation") ControlSend("My Installation","","",$drive&":\myinst\serv\") .................................................................. Always I could see the edit box entry as ":\myinst\serv" apart from "D:\myinst\serv" What could wrong from the above? Thanks Link to comment Share on other sites More sharing options...
Steveiwonder Posted January 18, 2010 Share Posted January 18, 2010 (edited) Hello,My guess is that your script is sending "D" to the window and high-lighting the edit box (D is probably the key to highlight that editbox) then sending the rest of the string which would explain the missing "D"$drive= "D" $WinTitle = "My Installation" $WinText = "Select Installation" WinWait($WinTitle, $WinText) ControlSend($WinTitle,"","","!f") WinWait($WinTitle, $WinText) ControlSend("My Installation","",ENTERCONTROLID??, $drive & ":\myinst\serv\") ; NO CONTROL IDUsing ControlSend(), its probably a good idea for you to use the CONTROLID. Use Autoit Window Info toolHelp File: ControlSend ( "title", "text", controlID, "string" [, flag] ) Edited January 18, 2010 by Steveiwonder They call me MrRegExpMan 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