Fullscreen Button

Get help using Construct 2

Post » Sun May 13, 2012 10:54 am

Is there a Way that I can simulate pressing F11 ?

So I can toggle it via a Button
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Sun May 13, 2012 4:34 pm

Browser object --> request fullscreen
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun May 13, 2012 8:23 pm

Ive noticed that its not quite the same yet. A button i made "request fullscreen" seemed to be buggy where the corners werent filling the screen right, but when i hit f11 it worked fine. Think chrome also said something like "user has initiated fullscreen" instead of "you are now in fullscreen"...there was a difference, may be just me.
"Enter The Grump Monk"
B
12
S
4
G
5
Posts: 40
Reputation: 3,934

Post » Sun May 13, 2012 11:36 pm

It's already included a modified sample it's called Ghost Shooter (laser version).capx from Start Page you may go to see event sheet, scroll to bottom until the last event you get it.

I tested with F11 and it works, using Chrome.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Mon May 14, 2012 12:07 am

I have noticed something..

The Request Button is not working after I have used F11.

Probably bad scripted
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Mon May 14, 2012 12:30 am

[QUOTE=Schoening] I have noticed something..

The Request Button is not working after I have used F11.

Probably bad scripted[/QUOTE]

Are you using laptop? every modern laptops have a FN key, otherwise F1-12 keys aren't common, are special function keys like open browser, turn on/off wifi, play video, stop video, etc.

Need to hold down FN key, then press F11 it does act like common key.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Mon May 14, 2012 2:05 pm

Because of Javascript security restriction, there is no way to trigger manually, from the code, the F11 button.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Mon May 14, 2012 6:58 pm

Naah Joannesalfa my laptops f11 is working, but after i use it, the Request Browser Button gets useless. No worrie though
B
40
S
11
G
4
Posts: 665
Reputation: 8,403


Return to How do I....?

Who is online

Users browsing this forum: GUN and 15 guests