Sign in to follow this  
Followers 0
gdijim

Send text all at once instead of one char at a time?

6 posts in this topic

I'm probably thick, although I've been doing my best to ensure I check the help file and forums before I post, but:

How do you send text all at once?

Send("Error Message")

This sends each character one at a time. I'd like to skip this gonkiness because I have tons of text to type. My scripts run pretty slow because of it.

Is there an easy command that I've just overlooked in the helpfile to make this happen?

Thanks!

Jim

Share this post


Link to post
Share on other sites



I'm probably thick, although I've been doing my best to ensure I check the help file and forums before I post, but:

How do you send text all at once?

Send("Error Message")

This sends each character one at a time. I'd like to skip this gonkiness because I have tons of text to type. My scripts run pretty slow because of it.

Is there an easy command that I've just overlooked in the helpfile to make this happen?

Thanks!

Jim

What are you sending it to?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Just a database program - I also use it in other scripts to key in website addresses into web browsers, etc - I'm just looking for a way to get my "pre-recorded" text to output in a solid chunk, like a copy/paste, rather than 1-character-at-a-time-really-fast.

Thanks!

Jim

Share this post


Link to post
Share on other sites

Just a database program - I also use it in other scripts to key in website addresses into web browsers, etc - I'm just looking for a way to get my "pre-recorded" text to output in a solid chunk, like a copy/paste, rather than 1-character-at-a-time-really-fast.

Thanks!

Jim

Well ...

You could do it like ClipPut($Var) ... Then Send('^v') ... ($Var containing all the text)

You could Speed up the send key delays (Opt - SendKeyDelay)

You could see if the item you are sending to is a Control and use ControlSetText()

So there are a few options.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Smoke,

Thanks - I'll look into all these.

Also, I've been trying like crazy to get a handle on auto IT, but I'm still kind of stumped a lot. Any place you reccomend looking to learn it better? The autoit1-2-3 that I've downloaded seems to be broken somewhat, although I have used it to learn some stuff.

As I'm still trying to learn to script/program in general, it makes it that much more challenging.

Thanks for your advice,

Jim

Share this post


Link to post
Share on other sites

See if this helps you a bit.. LxP is one sharp cookie.

http://www.autoitscript.com/forum/index.ph...c=19434&hl=


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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