using hotkey in command interface

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Jackie Chan
New Cone
New Cone
Posts: 4
Joined: 21 Nov 2008 18:12

using hotkey in command interface

Postby Jackie Chan » 21 Nov 2008 18:55

my problem is that I want to use Eventghost to control VLC. The plugin allows a lot of setting but not to control a DVD-menu. One makro in Eventghost is mycommand. It is enabled with the VLC start "C:\Programme\VideoLAN\VLC\vlc.exe --extraintf=rc --rc-host=localhost:1234 --rc-show-pos" when I start VLC with command windowit shows the same commands I can use with mycommand of Eventghost. I added it here:

VLC media player: MyCommand: H
VLC.+----[ Remote-Control-Befehle ]
VLC.|
VLC.| add XYZ . . . . . . . . . XYZ der Wiedergabeliste hinzufügen
VLC.| enqueue XYZ . . . . . . . . XYZ an die Wiedergabeliste anhängen
VLC.| playlist . . . . . aktuelle Objekte der Wiedergabeliste zeigen
VLC.| play . . . . . . . . . . . . . . . . . . . Stream wiedergeben
VLC.| stop . . . . . . . . . . . . . . . . . . . . . Stream stoppen
VLC.| next . . . . . . . . . . . . . nächstes Wiedergabelistenobjekt
VLC.| prev . . . . . . . . . . . . vorheriges Wiedergabelistenobjekt
VLC.| gehe zu. . . . . . . . . . gehe zu Objekt bei gegebenem Index
VLC.| repeat [on|off] . . . . . . . . Objektwiederholung umschalten
VLC.| loop [on|off] . . . . Wiedergabelistenwiederholung umschalten
VLC.| random [on|off] . . . . . . . Zufällige Wiedergabe umschalten
VLC.| clear . . . . . . . . . . . . . . . . Wiedergabeliste löschen
VLC.| status . . . . . . . . . . . aktueller Wiedergabelistenstatus
VLC.| title [X] . . . . . Titel im aktuellen Objekt ein-/darstellen
VLC.| title_n . . . . . . . . . nächster Titel im aktuellen Objekt
VLC.| title_p . . . . . . . . vorheriger Titel im aktuellen Objekt
VLC.| chapter [X] . . . Kapitel im aktuellen Objekt ein-/darstellen
VLC.| chapter_n . . . . . . . nächstes Kapitel im aktuellen Objekt
VLC.| chapter_p . . . . . . vorheriges Kapitel im aktuellen Objekt
VLC.|
VLC.| seek X . . . . . Suchen in Sekunden, beispielsweise `seek 12'
VLC.| pause . . . . . . . . . . . . . . . . . . . Pause umschalten
VLC.| fastforward . . . . . . . . . . . . auf maximale Rate schalten
VLC.| rewind . . . . . . . . . . . . . . auf minimale Rate schalten
VLC.| faster . . . . . . . . . . . schnellere Wiedergabe des Streams
VLC.| slower . . . . . . . . . . . langsamere Wiedergabe des Streams
VLC.| normal . . . . . . . . . . . . normale Wiedergabe des Streams
VLC.| f [on|off] . . . . . . . . . . . . . . . . Vollbild umschalten
VLC.| info . . . . . . . . . Informationen über den aktuellen Stream
VLC.| stats . . . . . . . . . . . statistische Informationen zeigen
VLC.| get_time . . Sekunden, die seit Beginn des Streams vergangen sind
VLC.| is_playing . . 1 falls der Stream gerade läuft, andernfalls 0
VLC.| get_title . . . . . Titel des aktuellen Streams
VLC.| get_length . . . . Länge des aktuellen Streams
VLC.|
VLC.| volume [X] . . . . . . . . . . . . Lautstärke zeigen/festlegen
VLC.| volup [X] . . . . . . . . . . Lautstärke um X Stufen erhöhen
VLC.| voldown [X] . . . . . . . . Lautstärke um X Stufen verringern
VLC.| adev [X] . . . . . . . . . . . . . Ton-Device zeigen/einstellen
VLC.| achan [X]. . . . . . . . . . . . . Tonkanäle zeigen/einstellen
VLC.| atrack [X] . . . . . . . . . . . Audiospur setzen/einstellen
VLC.| vtrack [X] . . . . . . . . . . . Videospur setzen/einstellen
VLC.| vratio [X] . . . . . . . Videoseitenverhältnis holen/einstellen
VLC.| vcrop [X] . . . . . . . . . . . set/get video crop
VLC.| vzoom [X] . . . . . . . . . . . set/get video zoom
VLC.| snapshot . . . . . . . . . . . . einen Videoschnappschuss machen
VLC.| strack [X] . . . . . . . . . Untertitelspur holen/einstellen
VLC.| key [Hotkey Name] . . . . . . Hotkey druck simulieren
VLC.| menu [on|off|up|down|left|right|select] Menü benutzen
VLC.|
VLC.| @name marq-marquee ZEICHENKETTE . . ZEICHENKETTE im Video einblenden
VLC.| @name marq-x X . . . . . . . . . . . . . . . . . . Abstand von links
VLC.| @name marq-y Y . . . . . . . . . . . . . . . . . . Abstand von oben
VLC.| @name marq-position #. . . . . . . . . . relative Positionskontrolle
VLC.| @name marq-color # . . . . . . . . . . . . . . . . Schriftfarbe, RGB
VLC.| @name marq-opacity # . . . . . . . . . . . . . . . . . . . Deckkraft
VLC.| @name marq-timeout T . . . . . . . . Timeout der Einblendung, in ms
VLC.| @name marq-size # . . . . . . . . . . . . . Schriftgröße, in Pixeln
VLC.|
VLC.| @name logo-file ZEICHENKETTE . . . die zu überlagernde Datei (Pfad/Name)
VLC.| @name logo-x X . . . . . . . . . . . . . . . . . . Abstand von links
VLC.| @name logo-y Y . . . . . . . . . . . . . . . . . . Abstand von oben
VLC.| @name logo-position # . . . . . . . . . . . . . . relative Position
VLC.| @name logo-transparency # . . . . . . . . . . . . . . . Transparenz des Logos
VLC.|
VLC.| @name mosaic-alpha #. . . . . . . . . . . . . . . . . . . . . Alpha
VLC.| @name mosaic-height # . . . . . . . . . . . . . . . . . . . . . Höhe
VLC.| @name mosaic-width # . . . . . . . . . . . . . . . . . . . . Breite
VLC.| @name mosaic-xoffset # . . . . . . . Position der linken oberen Ecke
VLC.| @name mosaic-yoffset # . . . . . . . Position der linken oberen Ecke
VLC.| @name mosaic-offsets x,y(,x,y)*. . . . Liste der Abstände
VLC.| @name mosaic-align 0..2,4..6,8..10. . . . . . . . Mosaik-Ausrichtung
VLC.| @name mosaic-vborder # . . . . . . . . . . . . . . . vertikaler Rand
VLC.| @name mosaic-hborder # . . . . . . . . . . . . . . horizontaler Rand
VLC.| @name mosaic-position {0=auto,1=fest} . . . . . . . . . . . Position
VLC.| @name mosaic-rows #. . . . . . . . . . . . . . . . Anzahl von Reihen
VLC.| @name mosaic-cols # . . . . . . . . . . . . . . . Anzahl von Spalten
VLC.| @name mosaic-order id(,id)* . . . . Reihenfolge von Bildern
VLC.| @name mosaic-keep-aspect-ratio {0,1} . . . . . . . Seitenverhältnis
VLC.|
VLC.| help . . . . . . . . . . . . . . . . . . diese Hilfsmitteilung
VLC.| longhelp . . . . . . . . . . . . eine längere Hilfsmitteilung
VLC.| logout . . . . . . . . . . . Abmelden (bei Socket-Verbindung)
VLC.| quit . . . . . . . . . . . . . . . . . . . VLC beenden
VLC.|
VLC.+----[ Ende der Hilfe ]

I can use normal commands like "play" or "pause"
the explain for volume in the list is "volume [X]" so I entered "volume 100" and it works too.
now my problem: to navigate through a DVD-menu I need to use the arrowkeys. The command "key [Hotkey Name]" doesn't work. The answer of VLC is:

key ...
[00000393] main interface error: option ... does not exist

maybe I have to activate the hotkey-menu somehow or the command is wrong or I have to set the command in brackets or write it in big letters or... I have tested and searched a lot over three days and found after I first searched the problem at eventghost the command-window with the same commands. But I still cant move through a DVD-menu only using the commands.I think the key-command is the right way to solve the problem but I don't know how. Maybe someone can show me the right way.
My version of VLC is 0.9.6

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: using hotkey in command interface

Postby Jean-Baptiste Kempf » 22 Nov 2008 14:42

Use vlc --help --longhelp to have the list of options.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jackie Chan
New Cone
New Cone
Posts: 4
Joined: 21 Nov 2008 18:12

Re: using hotkey in command interface

Postby Jackie Chan » 22 Nov 2008 16:38

I did so and get the list above. i need the right way to type in command-line "key up" or down or right or left.

| key [Hotkey Name] . . . . . . Hotkey druck simulieren

when I type in key and a hotkey that Ifound under settings- hotkey I alwas get answer from VLC like this
key ...
[00000393] main interface error: option ... does not exist
when I type in

"key up"
comes
key up
[00000393] main interface error: option up does not exist

i changed the up and down into letters but the same happens. Maybe I`ve to type in some brackets or something else.
Things like play and stop anf "f" for fullscreen work, but not hotkeys. Ther must be a little thing thats mising but what.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: using hotkey in command interface

Postby Jean-Baptiste Kempf » 22 Nov 2008 19:52

Because you are mistaking command options and rc commands.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jackie Chan
New Cone
New Cone
Posts: 4
Joined: 21 Nov 2008 18:12

Re: using hotkey in command interface

Postby Jackie Chan » 23 Nov 2008 16:00

Oh sorry, I had yesterday an idea that something like this could be.Thank you, now it is a little bit clearer. How can I open the command line under XP.
And back to my problem: Is it than possible to use hotkeys in rc command. I'm able to navigate through a DVD menu with keyboard up down right left keys and need to simulate them on my IR reciever. This is possible with eventghost. Eventghost uses the rc commands.
I'm able to use rc-commands like play or stop but not hotkeys. The help of rc-commands shows the command
key [Hotkey Name]
how do I have to use this. Maybe the funktion doesn't work or I've to set the command in brackets. If it doesn't work plese tell me too but when its possible where is my mistake.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: using hotkey in command interface

Postby VLC_help » 23 Nov 2008 18:54

How can I open the command line under XP.
Start -> Run -> cmd

Jackie Chan
New Cone
New Cone
Posts: 4
Joined: 21 Nov 2008 18:12

Re: using hotkey in command interface

Postby Jackie Chan » 24 Nov 2008 20:17

Thanks, I tested it and created a helplist, but can anyone help me with my other problem?

gema
New Cone
New Cone
Posts: 1
Joined: 06 Feb 2010 22:30

Re: using hotkey in command interface

Postby gema » 06 Feb 2010 22:37

have a look in libvlc-module.c, there are the valid hotkey strings like key-pause:
const struct action libvlc_actions[] =
{
{ "key-quit", ACTIONID_QUIT, },
{ "key-play-pause", ACTIONID_PLAY_PAUSE, },
{ "key-play", ACTIONID_PLAY, },
{ "key-pause", ACTIONID_PAUSE, },
{ "key-stop", ACTIONID_STOP, },
{ "key-position", ACTIONID_POSITION, },
{ "key-jump-extrashort", ACTIONID_JUMP_BACKWARD_EXTRASHORT, },
{ "key-jump+extrashort", ACTIONID_JUMP_FORWARD_EXTRASHORT, },
{ "key-jump-short", ACTIONID_JUMP_BACKWARD_SHORT, },
{ "key-jump+short", ACTIONID_JUMP_FORWARD_SHORT, },
{ "key-jump-medium", ACTIONID_JUMP_BACKWARD_MEDIUM, },
{ "key-jump+medium", ACTIONID_JUMP_FORWARD_MEDIUM, },
{ "key-jump-long", ACTIONID_JUMP_BACKWARD_LONG, },
{ "key-jump+long", ACTIONID_JUMP_FORWARD_LONG, },
{ "key-frame-next", ACTIONID_FRAME_NEXT, },
{ "key-prev", ACTIONID_PREV, },
{ "key-next", ACTIONID_NEXT, },
{ "key-faster", ACTIONID_FASTER, },
{ "key-slower", ACTIONID_SLOWER, },
{ "key-rate-normal", ACTIONID_RATE_NORMAL, },
{ "key-rate-faster-fine", ACTIONID_RATE_FASTER_FINE, },
{ "key-rate-slower-fine", ACTIONID_RATE_SLOWER_FINE, },
{ "key-toggle-fullscreen", ACTIONID_TOGGLE_FULLSCREEN, },
{ "key-leave-fullscreen", ACTIONID_LEAVE_FULLSCREEN, },
{ "key-vol-up", ACTIONID_VOL_UP, },
{ "key-vol-down", ACTIONID_VOL_DOWN, },
{ "key-vol-mute", ACTIONID_VOL_MUTE, },
{ "key-subdelay-down", ACTIONID_SUBDELAY_DOWN, },
{ "key-subdelay-up", ACTIONID_SUBDELAY_UP, },
{ "key-audiodelay-down", ACTIONID_AUDIODELAY_DOWN, },
{ "key-audiodelay-up", ACTIONID_AUDIODELAY_UP, },
{ "key-audio-track", ACTIONID_AUDIO_TRACK, },
{ "key-subtitle-track", ACTIONID_SUBTITLE_TRACK, },
{ "key-aspect-ratio", ACTIONID_ASPECT_RATIO, },
{ "key-crop", ACTIONID_CROP, },
{ "key-deinterlace", ACTIONID_DEINTERLACE, },
{ "key-intf-show", ACTIONID_INTF_SHOW, },
{ "key-intf-hide", ACTIONID_INTF_HIDE, },
{ "key-snapshot", ACTIONID_SNAPSHOT, },
{ "key-zoom", ACTIONID_ZOOM, },
{ "key-unzoom", ACTIONID_UNZOOM, },
{ "key-crop-top", ACTIONID_CROP_TOP, },
{ "key-uncrop-top", ACTIONID_UNCROP_TOP, },
{ "key-crop-left", ACTIONID_CROP_LEFT, },
{ "key-uncrop-left", ACTIONID_UNCROP_LEFT, },
{ "key-crop-bottom", ACTIONID_CROP_BOTTOM, },
{ "key-uncrop-bottom", ACTIONID_UNCROP_BOTTOM, },
{ "key-crop-right", ACTIONID_CROP_RIGHT, },
{ "key-uncrop-right", ACTIONID_UNCROP_RIGHT, },
{ "key-nav-activate", ACTIONID_NAV_ACTIVATE, },
{ "key-nav-up", ACTIONID_NAV_UP, },
{ "key-nav-down", ACTIONID_NAV_DOWN, },
{ "key-nav-left", ACTIONID_NAV_LEFT, },
{ "key-nav-right", ACTIONID_NAV_RIGHT, },
{ "key-disc-menu", ACTIONID_DISC_MENU, },
{ "key-title-prev", ACTIONID_TITLE_PREV, },
{ "key-title-next", ACTIONID_TITLE_NEXT, },
{ "key-chapter-prev", ACTIONID_CHAPTER_PREV, },
{ "key-chapter-next", ACTIONID_CHAPTER_NEXT, },
{ "key-zoom-quarter", ACTIONID_ZOOM_QUARTER, },
{ "key-zoom-half", ACTIONID_ZOOM_HALF, },
{ "key-zoom-original", ACTIONID_ZOOM_ORIGINAL, },
{ "key-zoom-double", ACTIONID_ZOOM_DOUBLE, },
{ "key-set-bookmark1", ACTIONID_SET_BOOKMARK1, },
{ "key-set-bookmark2", ACTIONID_SET_BOOKMARK2, },
{ "key-set-bookmark3", ACTIONID_SET_BOOKMARK3, },
{ "key-set-bookmark4", ACTIONID_SET_BOOKMARK4, },
{ "key-set-bookmark5", ACTIONID_SET_BOOKMARK5, },
{ "key-set-bookmark6", ACTIONID_SET_BOOKMARK6, },
{ "key-set-bookmark7", ACTIONID_SET_BOOKMARK7, },
{ "key-set-bookmark8", ACTIONID_SET_BOOKMARK8, },
{ "key-set-bookmark9", ACTIONID_SET_BOOKMARK9, },
{ "key-set-bookmark10", ACTIONID_SET_BOOKMARK10, },
{ "key-play-bookmark1", ACTIONID_PLAY_BOOKMARK1, },
{ "key-play-bookmark2", ACTIONID_PLAY_BOOKMARK2, },
{ "key-play-bookmark3", ACTIONID_PLAY_BOOKMARK3, },
{ "key-play-bookmark4", ACTIONID_PLAY_BOOKMARK4, },
{ "key-play-bookmark5", ACTIONID_PLAY_BOOKMARK5, },
{ "key-play-bookmark6", ACTIONID_PLAY_BOOKMARK6, },
{ "key-play-bookmark7", ACTIONID_PLAY_BOOKMARK7, },
{ "key-play-bookmark8", ACTIONID_PLAY_BOOKMARK8, },
{ "key-play-bookmark9", ACTIONID_PLAY_BOOKMARK9, },
{ "key-play-bookmark10", ACTIONID_PLAY_BOOKMARK10, },
{ "key-history-back", ACTIONID_HISTORY_BACK, },
{ "key-history-forward", ACTIONID_HISTORY_FORWARD, },
{ "key-record", ACTIONID_RECORD, },
{ "key-dump", ACTIONID_DUMP, },
{ "key-random", ACTIONID_RANDOM, },
{ "key-loop", ACTIONID_LOOP, },
{ "key-wallpaper", ACTIONID_WALLPAPER, },
{ "key-menu-on", ACTIONID_MENU_ON, },
{ "key-menu-off", ACTIONID_MENU_OFF, },
{ "key-menu-right", ACTIONID_MENU_RIGHT, },
{ "key-menu-left", ACTIONID_MENU_LEFT, },
{ "key-menu-up", ACTIONID_MENU_UP, },
{ "key-menu-down", ACTIONID_MENU_DOWN, },
{ "key-menu-select", ACTIONID_MENU_SELECT, },
{ "key-audiodevice-cycle", ACTIONID_AUDIODEVICE_CYCLE, },
{ "key-toggle-autoscale", ACTIONID_TOGGLE_AUTOSCALE, },
{ "key-incr-scalefactor", ACTIONID_SCALE_UP, },
{ "key-decr-scalefactor", ACTIONID_SCALE_DOWN, },
};


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 13 guests