Detecting web browser full screen modes? Thread last updated on 2003-07-10 01:28:17

Posted by member 24796 on 2003-07-07 09:27:43

I'm running a wide variety of web browsers (Opera 7.x, Mozilla 1.x, IE 5.x), and they all support full screen modes via the F11 key. I have scripted functions that hide all my LiteStep modules, and that's currently mapped to Win+F11 and Win+F12 (to hide and show, respectively).

I have Literunner and Sciscript installed, and it seems to be the case that this setup can detect some programs that run in full screen mode *upon program start*. This is useful, but the web browsers typically start up in (and usually exit from) windowed mode.

Is there any reasonably easy way (aside from coding my own module) that I can set up the system to detect when a program (whether it be specific or general, I'm willing to do it either way) switches into and out of full screen mode?

Barring that, is there a way to have a program-dependent hotkey setup such that:
(a) when I'm focused on one of my web browsers and hit the F11 key, my hide/show script runs but the keypress is *also* passed to the program so that it can do its mode switch?
(b) when I'm focused on some other program, the F11 key does not run the script but simply lets the keypress go to the focused-on program?

I know that I can do *Hotkey .none F11 !hidestuff, but that doesn't pass the keypress through to the application. Maybe I'll browse some of the replacement hotkey modules.

Thank you in advance for reading my question. :)

--
-JC
http://www.jc-news.com/coding/SFi/

Posted by member 7 on 2003-07-07 10:19:33 link

Try the 0.24.7 betas. :)

Posted by member 24796 on 2003-07-07 15:58:39 link

I offer a partial "thank you". You obviously have moved great mountains for the functionality found in there, and I admire that.

Amusingly, I was already running beta 3 of 0.24.7. I just didn't notice the LSAutoHideModules back when I initially dropped it into my ILS directory.

Sadly, though, it does not completely solve my problem. IE -- the web browser that I by far use the least -- successfully triggers the hidden module state. But the modules stay alive for all other programs that I've tried to fullscreen.

I have the highest respect for you, and I do not mean to criticise, especially since problems with this particular feature was listed in the "known problems" of the readme. I'm going to go with my other strategy of looking for advanced hotkey module replacements that can (hopefully) change behaviour based on the active application and can optionally pass keypresses hotkeys to both the handler and the application. Any recommendations here would make me happy. Oh, yeah, if you think that I may have missed something critical with LSAutoHideModules, don't hesitate to let me know. :)

--
-JC
http://www.jc-news.com/coding/SFi/

Posted by member 45783 on 2003-07-08 01:52:48 link

Heyheyhey. LS hiding its modules when a fullscreen mode is detected? That could come in handy. How come none of my LS doc files mention anything like that (I have the last stable from sourceforge, but downloading the newest indiestep and glancing at the changes.txt didn't contain anything like that either).
And what readme, that damn indiestep build doesn't have a readme.

Could you please provide more information of this feature or at least tell where it is documented.

Posted by member 1783 on 2003-07-08 02:30:26 link

only the .7 betas have that feature, not .6 stable versions.

Posted by member 7 on 2003-07-08 03:51:36 link

Sadly the automatic fullscreen detection doesn't always work, that's why it's disabled by default in beta 3. It's using a pretty much undocumented shell hook that doesn't behave the way we expected. I'm still looking into it, however it's not very high on the todo list since it's not a critical issue.

But you can always use the new !hidemodules and !showmodules bang commands...

Posted by member 45783 on 2003-07-08 05:53:56 link

Actually I have toggles that either show or hide the whole UI and adjust desktop size accordingly. Just thought that that would be pretty darn much easier.

Hope you get it fixed before 24.7 comes out.
And it wouldn't harm to link to the betas, OK?

Posted by member 910 on 2003-07-08 22:53:05 link

you could always string F11 to the HideAll bangs and then use keypress.dll or whatever module it is that sends key presses to the active window. might work.

Posted by member 24796 on 2003-07-09 11:20:14 link

> you could always string F11 to the HideAll bangs and
> then use keypress.dll or whatever module it is that
> sends key presses to the active window. might work.

Yeah, that's exactly what I'm doing. Except that I can't find such a module.

Posted by member 910 on 2003-07-09 22:28:54 link

such a module as what? to send keyboard commands to the window? bptypein.dll i think is the name of the module that will send key presses to an active window.

Posted by member 7 on 2003-07-10 01:28:17 link

There's a version of jkey.dll that allows you to use ".none" as the modifier key. So you could probably use that to modify the behavior of F11. But you might not like the result. =)