clipboard

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
anza_

clipboard

Post by anza_ » Thu Apr 10, 2003 1:00 pm

hello,

my english ist not so good, but i´ll try to explain my problem:
i`d like to copy the active window into clipboard and later then i will
insert this screenshot into ms-word.
what is the answer of this problem ? :?:


greetz and thanx !!

anza

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Apr 10, 2003 1:32 pm

Hi,

The code to copy the active window is:

Press ALT
Press Print Screen
Release ALT

You will of course need to ensure the correct window is active first. If you run just the code above after going into Macro Scheduler you will of course copy a screen shot of Macro Scheduler as you will have made Macro Scheduler the active app. So I'm assuming your macro already handles focusing the correct application - using SetFocus or by running a program?

To paste into word:

SetFocus>Microsoft Word*
Press CTRL
Send>v
Release CTRL

I hope this gets you started ...
MJT Net Support
[email protected]

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