Posted: 10th Oct 2022 20:48
I would like to *programmatically* save a screenshot of my entire screen with all elements to the phone it runs on. Is this possible in HTML5?
Posted: 3rd Dec 2022 13:14
Not in AGK(s)
Posted: 3rd Dec 2022 15:44
SaveImage

something like this should work

+ Code Snippet
Function SaveScreenshot(sImage)
	Render()
	tmpImage = GetImage(0, 0, GetWindowWidth(), GetWindowHeight())
	SaveImage(tmpImage, sImage)
	DeleteImage(tmpImage)
	ClearScreen()
EndFunction
Posted: 3rd Dec 2022 16:33
GetImage + SaveImage

GetImage can work but the OP asked about HTML so SaveImage won't.

Prime had demo'd HTML File Access HERE (with Save) with some changes to AGKPlayer.js which may help.

meanwhile, OP also asked for the "entire screen with all elements to the phone" implying the HTML canvas wasn't occupying the full screen of the device, so... basically, as i understand it, they want to access the OS "Screenshot" function from within AppGameKit and that's not going to happen any kind of "natively" as far as i know.

click on the toolbar button (or press Alt+Shift+D combination)

do phones have those/buttons keys where you're from?
Posted: 3rd Dec 2022 17:18
GetImage can work but the OP asked


oh dang yea I missed that

implying the HTML canvas wasn't occupying the full screen of the device


if his app was taking a pic of areas outside its own client I would be kicking off, even if I could do this I would not share how!