Technical support and scripting issues
Moderators: JRL, Dorian (MJT support)
-
anza_
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
-
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 ...