Call computer File->Print command?

Get help using Construct 2

Post » Thu Nov 21, 2013 2:29 pm

Is it possible to call the browser File/Print dialog box from within C2? or would i need to call some external code to do that?

I'd like to find a way to provide the option to print a hard copy of a screen of my game.

thx

B
87
S
44
G
16
Posts: 1,009
Reputation: 17,946

Post » Thu Nov 21, 2013 4:32 pm

It does not seems to be supported by Construct, if it was, it would probably be in the Browser plugin and I can find anything. However, it is possible with javascript, using the window.print() function. So you can try using the "Execute javascript" action, also from the Browser plugin.

But I don't think you'll be able to print the canvas in it's current state anyway. You'll probably get what the page looks like before the game loads, not much. It requires more work, taking a snapshot, inject that image somewhere on the page, print that, then remove it and return to the game, not worth the trouble.OlivierC2013-11-21 16:34:44
B
12
S
5
G
2
Posts: 132
Reputation: 2,637


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests