Login | |
|
 |
RE: Print Screen in VBScript - 11/25/2007 5:01:29 PM
|
|
 |
|
| |
rasaec
Posts: 5
Score: 0
Joined: 11/22/2007
Status: offline
|
Hi, Thanks for your comments... I am new to VBScript. Any way I search all the commands in google and use it for my logic to Automate my application. The Script process is as follows: 1. Open an application 2. Before run, I want to take Screen Shots and paste it in a new document 3. Run the application 4. After run, I want to take Screen Shots and paste it in the same document I can take screen shots (for step 2 and 4) using VBScript. I donk know how to paste the Screens for step 2 and use the same for step 4 I tried using word.application to open a document. Kindly provide some input(Script) if any...... Thanks and Regards cZr
|
|
| |
|
|
|
 |
RE: Print Screen in VBScript - 11/25/2007 10:21:45 PM
|
|
 |
|
| |
rasaec
Posts: 5
Score: 0
Joined: 11/22/2007
Status: offline
|
Please Check the code and provide your comments.... Dim WB Dim WshShell Set WB = CreateObject("Word.Basic") Set WshShell = CreateObject("WScript.Shell") 'Before run---Some application process' WB.SendKeys "{prtsc}" 'Here I need a code for opening a new word document and pasting the screenshots into it' 'After run--Some application process' WB.SendKeys "{prtsc}" 'Another Code for pasting the Screenshots in the same document (Append) and to save it in the given folder' Thanks cZr
|
|
| |
|
|
|
 |
RE: Print Screen in VBScript - 11/26/2007 5:21:55 PM
|
|
 |
|
| |
rasaec
Posts: 5
Score: 0
Joined: 11/22/2007
Status: offline
|
Hello, Thanks for your code.....
< Message edited by rasaec -- 11/27/2007 10:36:28 PM >
|
|
| |
|
|
|
 |
RE: Print Screen in VBScript - 11/3/2008 3:04:19 AM
|
|
 |
|
| |
Rischip
Posts: 510
Score: 2
Joined: 3/26/2007
Status: offline
|
Print Screen cannot be sent to an application through script (sendkeys).
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
|
|