Jump to content

incomplete entry with ControlSend


User123
 Share

Recommended Posts

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...