Run scripts from vlc.

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mixray
Blank Cone
Blank Cone
Posts: 22
Joined: 13 Feb 2004 16:11
Location: Toronto, Canada

Run scripts from vlc.

Postby mixray » 07 May 2004 15:28

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).
Thank you for your answers.

mixray

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 10 May 2004 23:19

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.
Don't use PMs for support questions.

mixray
Blank Cone
Blank Cone
Posts: 22
Joined: 13 Feb 2004 16:11
Location: Toronto, Canada

Postby mixray » 11 May 2004 15:25

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?
Thank you for your answers.

mixray

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 11 May 2004 18:00

read the code in modules/control/hotkeys.c and add a key that launches a bash script.
Don't use PMs for support questions.

mixray
Blank Cone
Blank Cone
Posts: 22
Joined: 13 Feb 2004 16:11
Location: Toronto, Canada

Postby mixray » 13 May 2004 18:11

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?
Thank you for your answers.

mixray

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 14 May 2004 00:58

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........
Don't use PMs for support questions.

mixray
Blank Cone
Blank Cone
Posts: 22
Joined: 13 Feb 2004 16:11
Location: Toronto, Canada

Postby mixray » 14 May 2004 16:51

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.
Thank you for your answers.

mixray

anon

Postby anon » 17 May 2004 11:11

did you re-compile after modifying the source code? Simply changing the .c file will have no effect on a precompiled binary...

mixray
Blank Cone
Blank Cone
Posts: 22
Joined: 13 Feb 2004 16:11
Location: Toronto, Canada

Postby mixray » 17 May 2004 15:37

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.
Thank you for your answers.

mixray

mixray
Blank Cone
Blank Cone
Posts: 22
Joined: 13 Feb 2004 16:11
Location: Toronto, Canada

Postby mixray » 18 May 2004 22:01

If vlc runs in interface=dummy mode, it doesn't enter the hotkey.c at all, but the 'f' hotkey works.
Thank you for your answers.

mixray

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 19 May 2004 08:13

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 60 guests