RE: FN-FORUM: X-Window Messages
date posted 1st February 2006 16:30
Hi,
Easiest way might be to hack firefox, I would have thought. Perhaps add
a timer thread that forces a redirect every so often. I've never looked
at the code so couldn't tell you how hard that would be. I think the
licence allows you to keep mods like that private.
Graham
> > Anyway, tell us about the hole, not the spade.
>
> Since this is not covered by any confidentiality agreements, here's the
> basics:
>
> System for an organisation to give free internet access to people. Firefox
> (full-screen) runs, and the user can control it.
>
> App Controller is always in the background. If no user keystrokes are
> detected for a period, it will do one of either:
> - Periodically load up some HTML adverts on the Firefox, or
> - Launch mplayer to play some [EMAIL REMOVED] adverts
>
> Furthermore, every n minutes, mplayer will be loaded irrespective, and user
> will be forced to watch 30secs of [EMAIL REMOVED] before being able to go back to their
> browsing.
>
> We did a demo of a similar system a while ago, and there were a few
> problems, mainly getting the firefox window to resume focus (I no longer
> work with the guy who did the demo).
>
> The console uses a custom keyboard, with no ctrl or alt keys. There is also
> no right mouse button.
>
> We proposed custom keys for things like cancel, refresh and back, the
> mappings would be picked up by the X-server and sent to our App Controller.
> E.g. for refresh would send the events right-mouse followed by Alt-R to the
> Firefox window.
>
> That's where we are now. How to send window events such as focus, and key
> strokes to an X-application (Firefox)?
>
> Cheers,
> James
>
--
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
skype: graham_k_stark
Homepage http://www.virtual-worlds.biz/people/graham_s
Virtual Chancellor http://www.virtual-worlds.biz/vwc