hotkey for Screenshot/screengrab?

By animator75

Resident (38)

animator75's picture

07-04-2021, 14:12

Hi!
Is there a hotkey for taking a screenshot and if so is it possible to have the screenshot automatically saved with the same name as the game file (for instance "nemesis.rom --> nemesis.png)? I am trying to build an image database for my arcade setup.
Thanks.

Login or register to post comments

By Manuel

Ascended (17937)

Manuel's picture

07-04-2021, 15:21

Try:
bind PRINT {screenshot [guess_title]}
or of course another hotkey (PRINT is the PrtScr key).

By animator75

Resident (38)

animator75's picture

09-04-2021, 08:38

Excellent! Big smile
Thanks!

By animator75

Resident (38)

animator75's picture

14-04-2021, 06:56

I have one more question. Smile

where does open MSX find the name of the screenshot? Sometimes the screenshot.png has the name spelled in spanish even though the name of the ROM file is in english. Does openMSX look in the file header rather than using the ROM file name?

By Manuel

Ascended (17937)

Manuel's picture

14-04-2021, 07:46

It uses the name as specified in the software database. If the ROM has a hash that is not in the database, the filename is used as fallback.

By animator75

Resident (38)

animator75's picture

14-04-2021, 09:15

Oh ok. Can I force it to use the filename?

By turbor

Champion (476)

turbor's picture

14-04-2021, 10:05

Quote:

Oh ok. Can I force it to use the filename?

You can specify a filename instead of using the guess_title function, or you can ask for the filename of the cart in a given slot if you want

bind PRINT {screenshot -prefix [file rootname [file tail [carta]]]}

By animator75

Resident (38)

animator75's picture

14-04-2021, 16:24

I have entered the line "bind q {screenshot -prefix [file rootname [file tail [carta]]]}" but that still does not save the screenshot using the ROM image name.

By animator75

Resident (38)

animator75's picture

14-04-2021, 16:29

I got it working. I forgot SAVE_SETTINGS..