Link to home
Start Free TrialLog in
Avatar of uuccu
uuccu

asked on

How to simulate a key press

Hi
I am using a .xsession script to start a firefox browser but would like it to start in fullscreen mode, the key to start fullscreen mode in firefox is F11, is it possible to add a line to the .xsession script to simulate an F11 key press after firefox has been started?

Here is the .xsession script that starts the web browser once the "kiosk" user has been automatically logged in.


while true ; do
   /firefox/firefox -fullscreen

done
Avatar of jlevie
jlevie

I don't believe you could simulate the key press and I don't see anything that indicates that firefox accepts -fullscreen as a startup option. But it does accept -height & -width options which you could use to fill the screen.
Avatar of uuccu

ASKER

Oh right actually I used an xpi for firefox to add the xpi, but have just discovered that some tweaking i have done to remove menus and context menus seem to disable it. Hense the attempt to use a key press. Oh well i guess it was worth a try.

What is the syntex for setting the browser window size? i have already tried it using -geometry yet there is no change it is always 800x600.
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial