An easy one I think...

BlitzPlus Forums/BlitzPlus Beginners Area/An easy one I think...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

gfxGrab = CreateImage(GAME_WIDTH, GAME_HEIGHT)
GrabImage gfxGrab,0,0
SaveImage gfxGrab, CurrentDir()+"screenshot.bmp"
FreeImage gfxGrab

I had trouble getting the print screen key recognised, don't know why, so I used an F Key in the end. Note that the code above only saves it as a bmp. Also it uses CurrentDir(). You can change this to whatever path you want but to find out the current desktop path you probably need to check the registry or call a User32.dll function. The code archives will contain code to let you do this.