Resolving Large SENDTEXT Issues

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
fthomas
Pro Scripter
Posts: 91
Joined: Fri Oct 03, 2008 6:40 pm

Resolving Large SENDTEXT Issues

Post by fthomas » Tue Jul 29, 2014 8:05 pm

Something I thought I would share to help the next fellow is a rather unique solution to a unique problem.

One of my automation sequences required me to send about 2,000 words of text into a text block of an application. No matter the time delays or different ideas on using a standard SENDTEXT> command, it would continuously get messed up. I"m sure I could have instituted a time delay between keys sent, but in the end, it would severely increase the time to complete the automation sequence.

A quick and easy solution kind of hit me. What I did is Performed a copy to the clipboard of the variable holding the text to be sent. Then I selected the field to be populated and did a simple CNTRL+v! Voila! The text as a whole is inserted almost instantly and completely error free!

So hopefully this will help someone down the road.

Frank

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Resolving Large SENDTEXT Issues

Post by Marcus Tettmar » Wed Jul 30, 2014 7:22 am

To insert a delay between keys set SK_DELAY. E.g.

Let>SK_DELAY=50
Sendtext>textblock

That would insert a delay of 50ms between each character.

See help file topic for sendtext command.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts