How to catch F11 full screen event

  • Thread starter Thread starter jardo
  • Start date Start date
J

jardo

one solution is to hook custom function on document.onkeydown and checking
event.keyCode on 122

BUT

this is not solution if Full Screen is made from IExplorer menu (View ->
Full Screen)

how to do this? how to do general handling??

j.
 
Hi Jardo,

When IE goes into theatre mode (not window maximize) it will read the
registry value hkcu\software\microsoft\internet explorer\toolbars[Theater]
You could place a monitor on this value (see the RegMon tool).
For what purpose do you want to intercept this event?

Oh, sorry there is already an event in the WebbrowserCtrl object modle -
OnTheaterMode(byval TheaterMode as Boolean)
TheaterMode = false ' will disable theater mode

If you are trying to add your custom toolbar to the IE toolbar when its in
Theater mode, just add your toolbars CLSID to the
hkcu\software\microsoft\internet explorer\toolbars registry key

Regards.
 
i want to make some action on this event..

how to do this with script on page..

something like:

document.ontheatremode = theatre;

function theatre()
{
if (?TEST?) //theatre on
{
//when turning theatre on make: ....
}
else //theatre off
{
//when turning theatre off make: ....
}
}



Rob ^_^ said:
Hi Jardo,

When IE goes into theatre mode (not window maximize) it will read the
registry value hkcu\software\microsoft\internet explorer\toolbars[Theater]
You could place a monitor on this value (see the RegMon tool).
For what purpose do you want to intercept this event?

Oh, sorry there is already an event in the WebbrowserCtrl object modle -
OnTheaterMode(byval TheaterMode as Boolean)
TheaterMode = false ' will disable theater mode

If you are trying to add your custom toolbar to the IE toolbar when its in
Theater mode, just add your toolbars CLSID to the
hkcu\software\microsoft\internet explorer\toolbars registry key

Regards.
jardo said:
one solution is to hook custom function on document.onkeydown and
checking event.keyCode on 122

BUT

this is not solution if Full Screen is made from IExplorer menu (View ->
Full Screen)

how to do this? how to do general handling??

j.
 
no ideas???


jardo said:
i want to make some action on this event..

how to do this with script on page..

something like:

document.ontheatremode = theatre;

function theatre()
{
if (?TEST?) //theatre on
{
//when turning theatre on make: ....
}
else //theatre off
{
//when turning theatre off make: ....
}
}



Rob ^_^ said:
Hi Jardo,

When IE goes into theatre mode (not window maximize) it will read the
registry value hkcu\software\microsoft\internet
explorer\toolbars[Theater]
You could place a monitor on this value (see the RegMon tool).
For what purpose do you want to intercept this event?

Oh, sorry there is already an event in the WebbrowserCtrl object modle -
OnTheaterMode(byval TheaterMode as Boolean)
TheaterMode = false ' will disable theater mode

If you are trying to add your custom toolbar to the IE toolbar when its
in Theater mode, just add your toolbars CLSID to the
hkcu\software\microsoft\internet explorer\toolbars registry key

Regards.
jardo said:
one solution is to hook custom function on document.onkeydown and
checking event.keyCode on 122

BUT

this is not solution if Full Screen is made from IExplorer menu (View ->
Full Screen)

how to do this? how to do general handling??

j.
 
Back
Top