?
Solved

How to simulate a key press

Posted on 2004-11-29
5
Medium Priority
?
1,078 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:uuccu
  • 2
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12698454
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
 

Author Comment

by:uuccu
ID: 12699794
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
 
LVL 40

Accepted Solution

by:
jlevie earned 1000 total points
ID: 12701050
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 11 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question