Screenshots

Started by dbuske, Wed 29/05/2013 16:22:34

Previous topic - Next topic

dbuske

I read that F12 should send an ingame screenshot to the games directory.
I tried it and it didn't work.
How do I take a screenshot?
What if your blessings come through raindrops
What if your healing comes through tears...

Stupot

#1
A game needs this in the global script, otherwise it won't work.
Code: AGS
function on_key_press(eKeyCode keycode)
{
  if (keycode == eKeyF12) SaveScreenShot("scrnshot.bmp");
}
MAGGIES 2024
Voting is over  |  Play the games

Khris

This will only work if the according line is in on_key_press(), it's not hard-coded.
Here's the line from the default game:
Code: ags
  if (keycode == eKeyF12) SaveScreenShot("scrnshot.bmp");  // F12

Note that this won't work during blocking events.

The file is saved to the save game directory, which is usually in C:\Users\[username]\Saved Games\[game name]

dbuske

What if your blessings come through raindrops
What if your healing comes through tears...

SMF spam blocked by CleanTalk