win8_share_text

Share a some text through the "Share Charm".

Syntax:

win8_share_text(text, title, description, immediate);


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


Returns: N/A


Description

With this function you can share some text. Once you have added the text to be shared, you can also give it a title and a description. Finally 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.


Example:

if keyboard_check_pressed(ord("S"))
   {
   win8_share_text("You have been invited to the Restaurant At The End Of The Universe", "Invitation", "Your carriage awaits", true);
   }

The above code will check for the "S" key being pressed and if it is detected it will share the given text message.


Back: Windows 8
Next: win8_search_enable
© Copyright YoYo Games Ltd. 2018 All Rights Reserved