Jump to content
Sign in to follow this  
longxx

General ControlSend text+Enter question

Recommended Posts

longxx

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
enaiman

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
longxx

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
NELyon

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  

×

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.