Page 1 of 1

Adding a function to VLC plugin - skip forward

Posted: Mon Jan 12, 2009 1:17 pm
by pdrayton
Hello from a noob at this site.

Big thanks for Eventghost, I am LOVING being able to control VLC while lying in bed!

For those of you looking to make VLC skip forward use the Emulate Keystrokes: {Alt+Right} function. Skip forward is not a built in function with the VLC plugin, unfortunately. I tried to add it by editing the python script, but no luck.

This is what I added to the __init__.py script and restarted eventghost to get it to compile - a few different tries at it. Any ideas why it's not working? VLC is started with the remote feature on. I think the problem is I have the wrong keystroke, or that perhaps the skip forward is not part of the remote interface on VLC? I dunno....:(

('10s forward jump', '10s forward jump', '{ALT}+{RIGHT}'),
('10s forward jump', '10s forward jump', '{ALT+RIGHT}'),
('10s backward jump', '10s backward jump q', 'key [q]'), (I assigned that key in VLC keys)

The other entries for functions that work look like this:

('Play Normal', 'Play normal', 'normal'),

Any ideas? thanks,

P

Re: Adding a function to VLC plugin - skip forward

Posted: Mon Jan 12, 2009 3:02 pm
by jinxdone
Hello.

The VLC plugin connects to VLC through a 'rc' interface. The commands sent are not keyboard shortcuts but rather they are string commands that work on the rc interface, see vlc documentation for the skip forward command and add that if it was missing. :)

-jinxdone

Re: Adding a function to VLC plugin - skip forward

Posted: Mon Jan 12, 2009 7:21 pm
by pdrayton
Yes, I've got the rc interface working.

Found out that there are no built in commands for the short forward jump and long forward jump. Seems you have to use the hot keys, but I'm having trouble figuring out the format to send the command in.

I'm using key [key name], eg key [stop] or key [s], but they don't work.

The docs say to use the key name, but there is no key name that I can find, just the 'action' or the shortcut (key itself)

Perhaps I'll look more over on the vlc forums and post something there.

Got a work around for the moment which is to use 'find window' to find VLC and then use "Bring to front" to bring the VLC to the front again so it will take long forward jump commands from Emulate Keystrokes: {Ctrl+Left} which is the key strokes for the hot key programmed in VLC.