random typer

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Wed May 02, 2007 1:12 pm

The help will help you a lot. This is the correct syntax for WriteLn>

WriteLn>c:\temp\test.txt,result,%variable% Literal Text

So you can replace all of this:

send>%RandomWord%
putclipboard>%RandomWord%
GetClipBoard>%RandomWord%
writeln>c:\documents,text.txt,%RandomWord%

With just:

WriteLn>c:\documents\test.txt,result,%RandomWord%

Don't forget to include "result", see the help for why.

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

writeln

Post by idiot » Wed May 02, 2007 1:33 pm

i was trying to use the send>%random% to type a random word and have the same word that it just typed to be saved to the text file the code you said i should use to do that does not work :(
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

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

Post by Marcus Tettmar » Wed May 02, 2007 1:39 pm

This will type the value of randomword and then save it to a text file:

Send>randomword
WriteLn>textfile,result,randomword

Absolutely no need to put the word on the clipboard and then take it off again!
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

awesome

Post by idiot » Wed May 02, 2007 2:15 pm

thanks i understand all that you where both very helpful i really appreciate it i learned alot :D
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

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