Jump to content
Sign in to follow this  
User123

incomplete entry with ControlSend

Recommended Posts

User123

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

Share this post


Link to post
Share on other sites
Steveiwonder

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 ID

Using ControlSend(), its probably a good idea for you to use the CONTROLID. Use Autoit Window Info tool

Help File: ControlSend ( "title", "text", controlID, "string" [, flag] )

Edited by Steveiwonder

They call me MrRegExpMan

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.