The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "iimTakeBrowserScreenshot()"
Jump to navigation
Jump to search
(Removed note about IE and FX not being supported (added in V6.85)) |
|||
Line 4: | Line 4: | ||
int ret_code = iimTakeBrowserScreenshot ( String FILEPATH, int 0/1 ) | int ret_code = iimTakeBrowserScreenshot ( String FILEPATH, int 0/1 ) | ||
− | |||
− | |||
=== Parameters === | === Parameters === |
Revision as of 20:28, 24 November 2009
Takes a screenshot of the current browser content or the current website.
Syntax
int ret_code = iimTakeBrowserScreenshot ( String FILEPATH, int 0/1 )
Parameters
- String FILEPATH
- Defines where to save the screenshot. e.g. "c:\myscreenshots\testpage.png"
- Output always is in PNG format
- Int 0 or 1
- "0": take screenshot of browser
- "1": take screenshot of complete webpage
Return Codes
- -1 Error (e.g. no browser)
- -2: Wrong path
- -3: System locked, no desktop. This can happen in mode 0 only. If you need to run iimTakeBrowserScreenshot on a server, use either mode = 1 or contact tech support for mode 0 workarounds.
Examples
i = iim1.iimPlay("salesforce test1") 'Take screenshot of error If i < 0 then iscr = iim1.iimTakeBrowserScreenshot ("./screenshot salesforce error " & Hour(Now)&Minute(Now)&Second(Now) & ".png") if iscr < 0 then MsgBox "Could not take browser screenshot" end if