Hi Leute,
ich schlage mich schon eine Weile mit folgenden Fragen herum:
Wie kann ich einen Internet-Browser (wir setzen jetzt mal Firefox als gegeben ein) dazu bringen, die aufgerufene Seite alle paar X Minuten wieder zu refreshen, ohne dass ich die Taste F5 betätigen muß oder den Reload-Button.
Tante Go hat dazu leider auch keine passenden Aussagen bereit. Jemand eine Idee dazu?
Vielleicht kann man sich dieses Script bissel zurechtbasteln
Bash
#!/bin/bash
currentwindow=`xdotool getwindowfocus`
id=`xdotool search --title '[Site Title] - Google Chrome'`
xdotool windowmap $id
if [ $? = 0 ]
then
xdotool windowactivate $id
xdotool key 'ctrl+r' $id
fi
id=`xdotool search --title '[Site Title] - Moz'`
xdotool windowmap $id
if [ $? = 0 ]
then
xdotool windowactivate $id
xdotool key 'ctrl+r' $id
fi
id=`xdotool search --title '[Name of Virtual Machine]'`
xdotool windowmap $id
if [ $? = 0 ]
then
xdotool windowactivate $id
xdotool key 'ctrl+r' $id
xdotool key 'alt+Tab' $id
xdotool key 'ctrl+r' $id
fi
#xdotool windowmap $currentwindow
xdotool windowactivate $currentwindow
Alles anzeigen
Meinungen dazu? Natürlich muß das xdotool noch installiert werden. Aber so sieht das schon ganz gut aus.