app in full screen mode --- use capture hot key -> Preferences

Asked by Elisabeth Svensson

Hi!
I'm considering using Sikuli to test an application. This application is run in full screen mode, and this cannot be disabled.
Is it possible to take screen shots with Sikuli in such apps?
If I am in "capture mode", then I can't switch to my app (because then capture mode will turn itself off)
I read in another FAQ-question that you can't combine Sikuli with print screen.
So, are there any other solutions to this problem, or is it just not possible?

Best regards,
Elisabeth

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Guess it is some Windows system.

Have you already tested with Sikuli X-1.0rc2?

There is a capture hotkey, that can be used, when your app is in foreground (-> Preferences). The captured image is placed at the current cursor position in the IDE edit window (which is switched to foreground again in that moment).

This should work, if your application allows to switch with the normal means (e.g. Alt-Tab) back and force to other currently running applications.

If it does not work, consider to use 2 monitors.

If this does not work or is not possible, use any capture tool, that works and produces .png files, make your captures in any directory and then make your scripts based on that image directory (see: http://sikuli.org/docx/globals.html#importing-other-sikuli-scripts-reuse-code-and-images).

Revision history for this message
Elisabeth Svensson (elisv123) said :
#2

Hi again,
Thank you for the fast reply, much appreciated!

I'm working from Win 7 and installed Sikuli X-1.0rc2

In detail, this is what happens:
1. I start up the app to be tested
2. I switch to Sikuli -> Pressing "Take screenshot" -> I end up on my desktop with the "grey screen"
3. I now Alt-Tab back to my app

Result:
One of two things may happen, when my app is in full screen-
1. I get the grey screen, but my app gets minimized (so I get back to "grey screen" on my desktop)
2. I get my app in full screen, but the "grey screen" disappears

Should I do something different?

I did however manage to get it working by taking my own screenshots and inserting them to Sikuli manually. Although a slow process, it seems to do the job :)

Thanks again for the help!

//Elisabeth

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

seems you misunderstood:

in the IDE's File menu -> Preferences there is a Capture HotKey defined (should be Shift-Ctrl-2, but you may change it).

This can be used this way:

-- open Sikuli IDE
-- switch to your app now fullscreen
-- press capture hotkey - should go to capture mode with your app still visible
-- switch back to the IDE - you will find your captured image

you may do more than one capture before going back to IDE - the images are simply side by side in the IDE - now it is your turn to edit what has to be edited ;-)

Revision history for this message
Elisabeth Svensson (elisv123) said :
#4

Oh, I see what you mean now! Works beautifully.
Thanks a bunch!

Revision history for this message
Elisabeth Svensson (elisv123) said :
#5

Thanks RaiMan, that solved my question.

Revision history for this message
Raj Subramanian (subrar) said :
#6

Hi,

I have a similar problem. But in my case, the script (.sikuli) is unable to find the target images when the App is in fullscreen mode.
The script works perfectly well when the App is NOT in full screen mode.
Appreciate any help.

Thanks,
Raj