• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM why does vk_printscreen not work?

jobjorgos

Member
Somehow, this WORKS:
Code:
///take screenshot
if keyboard_check_pressed(vk_backspace){
    screen_save(working_directory + "\Screens\Screen_"+string(num)+".png")
    num += 1;
    instance_create(x,y,obj_screenshot);
}
and here with vk_printscreen it does NOT work:
Code:
///take screenshot
if keyboard_check_pressed(vk_printscreen){
    screen_save(working_directory + "\Screens\Screen_"+string(num)+".png")
    num += 1;
    instance_create(x,y,obj_screenshot);
}
I tested my prt_scr/sys rq key if it works at all, and it does, just not in-game for this event.
Also I tested to use a different computer with an other keyboard and the in-game vk_printscreen didnot get triggered there too.

anybody has any clues?
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
There is a possibility that it only works with keyboard_check_direct or is being caught by system as such.
 
Top