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
uuccuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jlevieCommented:
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.
0
uuccuAuthor Commented:
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.
0
jlevieCommented:
You can't use -geometry because that's an instruction to a windowmanager, which you aren't using. As I recall you should be able to use the -height & -width options.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.