Hello everyone,
I searched around but was unable to find the way I'd like to do a Capture screen.
I saw a thread where you can use Sendkeys to use a print screen but all it does it capture the screen where my script is being ran, not RUMBA.
I know there is strictly a Capture Screen option in RUMBA, is there a hotkey for it? Or perhaps a line where I can call it during the Script?
I have a script that I would like to grab a Screen Capture without any interaction.
As always, thank you in advance!
#RumbaHi Erik,
you could create a standalone .exe which would take your screenshot based on the handle of the Window you are trying to capture.
A lot depends however on the windows which you want to capture, e.g. is it in the foreground, if not is it fully visible on the screen, if not is it in the background or is it minimised.
Once you have an executable that can to chat, then you can find the handle of the Window which you want to capture using FindWindow (or GetForegroundWindow is it's the active window) in User32.dll.
Providing such an executable is beyond the scope of normal support, you could try googling it, appearing to the masses to create something for you or you could pulling Microfocus Profession Services to write such a tool for you. Alas out of the box I fear Rumba doesn't provide the ability anything to allow you to achieve your goal.
Tom
Hello everyone,
I searched around but was unable to find the way I'd like to do a Capture screen.
I saw a thread where you can use Sendkeys to use a print screen but all it does it capture the screen where my script is being ran, not RUMBA.
I know there is strictly a Capture Screen option in RUMBA, is there a hotkey for it? Or perhaps a line where I can call it during the Script?
I have a script that I would like to grab a Screen Capture without any interaction.
As always, thank you in advance!
#RumbaHi ErikAllen,
the SendKey Code to capture an image of a Rumba screen described in this thread works fine.
In most cases when running a rumba script the emulation window has anyhow the focus.
Rumba has a CaptureScreen Option. This feature captures the screen content as text and writes a file. There is no shortcut but you can easily recreate the same feature in a script. Find below a working example:
The code creates a text file and appends the screen content to the file. You can call the function in your code to capture the screen.
With this method there's no need for rumba to have the focus.
ScreenCapture.txt