Jump to content
Sign in to follow this  
jjj

controlsend ":" not ";"

Recommended Posts

i am having a problem with controlsend to an IE window:

ControlSend($hIE, "", "Internet Explorer_Server1", StringLeft($file, 1),1)

ControlSend($hIE, "", "Internet Explorer_Server1", ":",1)

ControlSend($hIE, "", "Internet Explorer_Server1", StringTrimLeft($file, 2),1)

$file is a path and a file (c:\temp.html) I have isolated the colon, because it keeps being sent as a semi-colon, which is my problem.

Is there any way to make sure this is sent as a colon? Is this a bug with autoit, or a complication of sending text to a form in IE?

Share this post


Link to post
Share on other sites

I don't know how $hIE is set but opening www.google.com and running

$hIE="Google - Microsoft Internet Explorer"
ControlSend($hIE, "", "Internet Explorer_Server1", ":",1)

works as expected with the official release and the beta :whistle:

Share this post


Link to post
Share on other sites

i am having a problem with controlsend to an IE window:

ControlSend($hIE, "", "Internet Explorer_Server1", StringLeft($file, 1),1)

ControlSend($hIE, "", "Internet Explorer_Server1", ":",1)

ControlSend($hIE, "", "Internet Explorer_Server1", StringTrimLeft($file, 2),1)

$file is a path and a file (c:\temp.html) I have isolated the colon, because it keeps being sent as a semi-colon, which is my problem.

Is there any way to make sure this is sent as a colon? Is this a bug with autoit, or a complication of sending text to a form in IE?

I think that doing a Send("{shift up}"), MIGHT, albeit MIGHT correct this, do that prior to sending anything at all to a control, and post findings on whether the combined control sends are corrected.

Laterzzz,

Onoitsu2

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  

×
×
  • Create New...