Page 1 of 1
Run scripts from vlc.
Posted: 07 May 2004 15:28
by mixray
Hi all!
Does anybody know about possibility to run scripts from vlc during it processing (as reaction to pressed button)?
If you know please answer me, I need this option veyr much.
(If you are sure that it's impossible, please, let me know too).
Posted: 10 May 2004 23:19
by The DJ
What kind of scripts????
If you would extend the hotkeys interface it could be done quite easily i guess, but no such feature currently exists.
Posted: 11 May 2004 15:25
by mixray
I need to run the bash scripts as reaction to the hotkeys.
If you say, that it is easy to extend hotkeys interface, so how can I do that?
Posted: 11 May 2004 18:00
by The DJ
read the code in modules/control/hotkeys.c and add a key that launches a bash script.
Posted: 13 May 2004 18:11
by mixray
Thank you for advise.
But are you sure this is only space there the hotkeys proceeded? I change code there for several existed keys to change there functionality, but it'd taken no effect.
May be there is another location?
Posted: 14 May 2004 00:58
by The DJ
It is the place where all the hotkeys for Windows/Mac and wxwindows intf of Linux are handled. Not all linux video outputs support this though maybe........
Posted: 14 May 2004 16:51
by mixray
It's a very strange behaviour. I commented the code that proceeding the fullscrean reaction (hotkey 'f'). But it still work, that I press 'f'. So must be another place, there it proceeds.
Posted: 17 May 2004 11:11
by anon
did you re-compile after modifying the source code? Simply changing the .c file will have no effect on a precompiled binary...
Posted: 17 May 2004 15:37
by mixray
It isn't the compilation problem.
The problem is that the program doesn't enter to the part of code, there the big case of actions (implemented by if elseif constraction). I think that the GetKey function here doesn't work. But it has to be another place, because all functionality proceeded. I use wxWindows, and now try to find something in code related to wxWindows.
Posted: 18 May 2004 22:01
by mixray
If vlc runs in interface=dummy mode, it doesn't enter the hotkey.c at all, but the 'f' hotkey works.
Posted: 19 May 2004 08:13
by ipkiss
The 'f' hotkey may be caught and interpreted directly by the video output (depending on the one you are using), thus bypassing the hotkeys code.
But some modules (the directx video output, the skins2 interface, and probably the wxwindows and macosx interfaces as well) transmit hotkeys they don't handle to the hotkeys module. So it should work in this case.