Jump to content

Recommended Posts

Posted

hi, when I tried to use Controlsend to send text+Enter to window,

ControlSend("XXX", "", "", "hello{ENTER}")

I noticed ControlSend("XXX", "", "", "hello{ENTER}")

sometimes can not send complete sentense, it seems like the computer presses the {ENTER} before the text string is finished,

when I do ControlSend("XXX", "", "", "hello") + sleep(100) + ControlSend("XXX", "", "", "{ENTER}") it is fine always

is this a AutoIt's controlsend bug problem? or my computer problem? or when we do text+ENTER it's always like this?

any other get around for long text input?

thanks.

Posted

I don't know exactly why this is happening but you could try:

ControlSend("XXX", "", "", "hello"&@CRLF)

maybe this will work for you.

can someone tell me what is @CRLF? thanks.
Posted

can someone tell me what is @CRLF? thanks.

It stands for Carriage Return/Line Feed. Essentially it is a character representing a new line.

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
×
×
  • Create New...