Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Reloading a Firefox Page from the Command Line
- Date: Sun, 24 Feb 2008 05:49:26 +0900
- From: "David Shanahan" <david@example.com>
- Subject: Re: [tlug] Reloading a Firefox Page from the Command Line
- References: <20080221082635.GC12311@lucky.cynic.net> <200802231135.33044.tlug@extellisys.net>
Here is an example of how I would do it on my system, which is configured to
give focus under the mouse and raises the window on a left mouse click. In
this example, I keep the Firefox window at the top left of the screen and
want to raise it so that I can see the results of the reload:
xte 'mousemove 0 0' 'keydown Control_L' 'key R' 'keyup Control_L' \
'mouseclick 1'
You could also search for the window by the window title.
xdotool can do this and there is an example on this site too.
http://www.semicomplete.com/projects/xdotool/
It goes like this. If your document title was "Crop Rotation in the 14th Century"
you find the window id and use it to set the focus and send keystrokes.
WID=`xdotool search --title "Crop Rotation in the 14th Century" | head -1`
xdotool windowfocus $WID
xdotool key ctrl+r
You could also just search for "Mozilla Firefox" in the title too, but it might find the wrong
window if you have more than one open.
- References:
- [tlug] Reloading a Firefox Page from the Command Line
- From: Curt Sampson
- Re: [tlug] Reloading a Firefox Page from the Command Line
- From: tlug
Home | Main Index | Thread Index
- Prev by Date: [tlug] Visio-to-PNG Batch Conversion - Possible?
- Next by Date: Re: [tlug] Reloading a Firefox Page from the Command Line
- Previous by thread: Re: [tlug] Reloading a Firefox Page from the Command Line
- Next by thread: [tlug] Visio-to-PNG Batch Conversion - Possible?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links