Sign in to follow this  
Followers 0
longxx

General ControlSend text+Enter question

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

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

maybe this will work for you.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

can someone tell me what is @CRLF? thanks.

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

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  
Followers 0