Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2009, 11:28 AM
FrankBradley FrankBradley is offline
Junior Member
 
Join Date: Jun 2009
Posts: 29
Default Screen Capture, a possible solution

So we just want to let others know how they could capture a screen image and save it to disk. The following section of code will capture a screen image via windows print screen and then activate Microsoft paint and past the clipboard into the program space.

Comment: The following code creates a screen image and places the stuff in MS paint
Keystrokes: [SHIFT DOWN][PRINT SCREEN][SHIFT UP] in "Currently Active Window"
Delay: (50 ms)
Keystrokes: [CTRL DOWN]v[CTRL UP] in "untitled - Paint"
Delay: (50 ms)
Keystrokes: [CTRL DOWN]s[CTRL UP] in "untitled - Paint"
Delay: (50 ms)
Variable Operation : $SysImageDirectory$\$InLeadNumber$-$Year$-$Month$-$Day$-$Hour$
Delay: (50 ms)
Set Text of Textbox in Window : "Save As" Text : "$SysImageFileName$"
Delay: (50 ms)
Keystrokes: [TAB] in "Save As"
Delay: (80 ms)
Keystrokes: P in "Save As"
Delay: (80 ms)
Click On Command Button : "Save" in Window : "Save As"
Delay: (50 ms)
Keystrokes: [CTRL DOWN]n[CTRL UP] in "*Paint"


Also the above code saves the image as a PNG.
__________________
Frank Bradley
Centah Inc
Reply With Quote
  #2 (permalink)  
Old 07-17-2009, 02:39 PM
Clay Clay is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Default

Great idea, Thank you!!!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved