How can I write to a non text file

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
rsamour
Newbie
Posts: 8
Joined: Tue Sep 29, 2009 7:54 pm

How can I write to a non text file

Post by rsamour » Tue Sep 29, 2009 8:10 pm

In a script I open an wordpad (rtf file) that I want to paste screen shots to as well as write text as the script progresses. I am able to paste screen shots, but WriteLn does not write text to an rtf. Is there a way to do this?
It does not have to be an rtf file, but I need to do both screen shots and text.

Thanks you,
Raymond

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Post by gdyvig » Tue Sep 29, 2009 10:07 pm

Hi rsamour,


Paste the text in as well.

Code: Select all

PutClipBoard>Picture of my macro robot
SetFocus>WordPad*
Press Ctrl
Send>V
Release>Ctrl


Gale

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Sep 29, 2009 10:10 pm

It sounds like you want to be using SEND vs. WRITELN. Use Set Focus before using Send.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Sep 29, 2009 10:12 pm

Or use Send>

Code: Select all

SetFocus>WordPad*
Send>Picture of my macro robot

rsamour
Newbie
Posts: 8
Joined: Tue Sep 29, 2009 7:54 pm

Post by rsamour » Wed Sep 30, 2009 6:59 pm

Thank you all! It works now.

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