![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |