Share a screenshot through the "Share Charm".


GML Code Example

win8_share_screenshot(title, description, immediate);

Argument Description
title The title of the image (a string)
description A text description of the image
immediate This flag can be set to true or false to share immediately or not.

Returns: N/A


With this function you can take a screenshot from your game and share it. You should give it a title and a description, then you should indicate whether it should be shared immediately (true) and shown in the slide-out share "charm" or not (false), in which case the user will have to manually call on the share "charm" to see the content.


GML Code Example

if keyboard_check_pressed(ord("S"))
    win8_share_screenshot("C.T.H._Screen_" + string(scr_num), "Catch The Haggis screenshot " + string(scr_num) + ".", true);
    scr_num += 1;

The above code will check for the "S" key being pressed and if it is detected it will take and share a screenshot.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here