Chcę przypisać dodatkowym przyciskom "Back" i Forward" na klawiaturze multimedialnej odpowiednio polecenia "Przewiń wstecz" i "Przewiń dalej" w przeglądarce Opera 9.26 lub 9.50
Do przypisywania działań przyciskom dodatkowym używam hotkeys.
Niestety - ani w manualu, ani za pomocą --help, ani na stronie pomocy opery, ani nawet za pomocą Google nie znalazłem jakie polecenie należy wydać w konsoli aby Opera wykonała te działania...
Uruchomienie opery z konsoli nie zaowocowało żadnym komunikatem przy klikaniu na owe przyciski.
Podobnie milczy przy ich używaniu konsola javy.
Jedynym (jak mi się wydaje) punktem uchwytu jest informacja na stronie pomocy opery, że:
Podejrzewam, ze kluczem może być owo "link rel="next"" w jakimś magicznym połączeniu z którąś z opcji remote opery, jednak nie wiem co z tym konkretnie zrobić.Przewiń dalej:
- Analizuje stronę i przechodzi do najbardziej prawdopodobnej następnej strony
- Otwiera stronę określoną w nagłówku za pomocą link rel="next"
- Otwiera znajdujący się na stronie odnośnik o treści „Następna” lub podobnej
- Uruchamia pokaz slajdów, jeśli strona zawiera odnośniki do wielu obrazków
Zaznaczam, że nie interesują mnie ani gotowe ani możliwe do przypisania skróty klawiszowe używające "zwykłych" klawiszy.
Podobnie nie interesuje mnie rada typu "użyj innej przeglądarki".
Za wszelkie przydatne porady będę bardzo wdzięczny.
Przydatne informacje:
1. Wynik opera --help:
Kod: Zaznacz cały
jollyroger@jolly-deb:~$ opera --help
Usage: opera [options] url
-newwindow open url in new window
-newpage open url in new page (tab)
-backgroundpage open url in background page (tab)
-fullscreen start in full screen mode
-iconic start in iconic mode
-geometry <geometry> set geometry of toplevel window
-remote <command> send command to another Opera window
-noraise do not raise window when receiving a remote command
-window <window id> a remote opera window
-windowname <window name> a remote opera window with a symbolic name
-restore restore default interface
-nosession do not open saved window sessions or homepage
-nowin do not open any document windows
-nomail start opera without internal e-mail client
-noshape do not apply shape to widgets
-language <file> use translation from specified file
-binarydir <path> location of version-specific binaries
-personaldir or -pd <path> location of alternative '.opera' directory
-display <displayname> set the X display
-fn <font> set the normal text font
-bg <color> set the background color
-fg <color> set the foreground color
-visual TrueColor use TrueColor visual on an 8-bit display
-cmap use private color map on an 8-bit display
-smallicon use a smaller icon image
-notrayicon do not show an opera icon in system tray
-disableinputmethods disable input methods
-restoreextensions restore default file type extensions
-postfix <name> append name to WM_CLASS and WM_WINDOW_ROLE
-version show version data
-full-version show version data and build details
-kioskhelp extra options for kiosk mode operation
-debughelp extra options for simple debugging
-help or -h show this help
Remote commands:
openURL() open "Go to" dialog box prompting for input
openURL(url) open url in active window
openURL(url,<destination>) open url in destination <W|P|B>
openFile(<destination>) open file selector in destination <W|P>
openM2(<destination>) open M2 list view in destination <W>
openComposer(<destination>) open M2 composer in destination <W>
addBookmark(url) add url to bookmark list
raise() raises the opera window
lower() lowers the opera window
<destination> Replace W: new-window, P: new-page, B: background-page
A standalone url argument or '-newwindow', '-newpage', '-backgroundpage'
or '-nowin' will disable '-remote' commands
Notes:
* <geometry> format is: WIDTHxHEIGHT+XOFF+YOFF
* '-window' and '-windowname' work for '-remote' and '-newwindow' commands
* '-window' accepts hexadecimal (default) or a decimal argument
* '-fullscreen' works when a new browser is launched
* '-nowin' disables any url argument
* '-windowname' will override '-newwindow' if a named window is located
* '-noraise' works for remote commands that do not open a dialog box
jollyroger@jolly-deb:~$
3. Mój plik definiujący przyciski multimedialne w hotkeys
Kod: Zaznacz cały
<?xml version="1.0"?>
<definition>
<config model="Tracer Perfect Flat Keyboard">
<userdef keycode="178" command="opera">Opera</userdef>
<userdef keycode="234" command="opera">Opera</userdef>
<userdef keycode="233" command="opera">Google.pl</userdef>
<userdef keycode="230" command="/usr/bin/iceweasel">Ulubione</userdef>
<userdef keycode="236" command="kontact --module kmail">Kmail</userdef>
<userdef keycode="162" command="amarok -t">Play/Pause</userdef>
<userdef keycode="144" command="amarok -r">Poprzedni utwór</userdef>
<userdef keycode="153" command="amarok -f">Następny utwór</userdef>
<userdef keycode="223" command="kdesu /usr/sbin/hibernate">Zamykam system"</userdef>
</config>
<contributor>
<name>XXX YYY</name>
<email>jollyroger3@o2.pl</email>
</contributor>
</definition>