simulating hotkeys press

This forum is about all development around libVLC.
Zingaro2002
Blank Cone
Blank Cone
Posts: 47
Joined: 30 May 2006 09:58

simulating hotkeys press

Postby Zingaro2002 » 12 Sep 2010 23:59

Hi!
I am developing an application in VB.net 2005 using libvlc.dll and following this article
http://www.helyar.net/2009/libvlc-media-player-in-c/
(I updated it and modified it to work with vb.net and VLC 1.1.4; by the way: THANKS George Helyar!!!)

I've seen in libVLC documentation that is possible to enable/disable hotkeys.

I need to know: is it possible, with libvlc.dll functions e routines, to automatically simulate a hotkey press to my vlc instance?
How can I do it?

I mean: I want my program to send a ctrl+r keys (example) to the VB.NET panel on which my vlc instance is applied; this must be done even if my main window is not foreground and WITHOUT human interaction (if someone is in front of monitor then he should see NO focus change in windows).

Thanks

Rémi Denis-Courmont
Developer
Developer
Posts: 15143
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: simulating hotkeys press

Postby Rémi Denis-Courmont » 14 Sep 2010 03:44

No.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Zingaro2002
Blank Cone
Blank Cone
Posts: 47
Joined: 30 May 2006 09:58

Re: simulating hotkeys press

Postby Zingaro2002 » 14 Sep 2010 10:22

thanks
OK, it's not possible to simulate hotkeys press.
But I must observe that hotkeys don't work even if I press them on keyboard (I've enabled them with libvlc_video_set_key_input ).
Is there a bug or should I change something?

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: simulating hotkeys press

Postby erwan10 » 14 Sep 2010 11:20

It's not a bug per se, but a well known limitation :(

The hotkeys subsytem was never updated to take the libvlc specific design into account. In more technical words, the input is still inferred from the playlist (which is not used in libvlc), and vout/aout are inferred from this inexistent input. So apart from very few hotkeys that refer to the whole instance, most of them are bound to be no-op.

Zingaro2002
Blank Cone
Blank Cone
Posts: 47
Joined: 30 May 2006 09:58

Re: simulating hotkeys press

Postby Zingaro2002 » 14 Sep 2010 15:16

Thank you,
I hope this limitation will be removed soon... :)

Rémi Denis-Courmont
Developer
Developer
Posts: 15143
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: simulating hotkeys press

Postby Rémi Denis-Courmont » 15 Sep 2010 03:33

I have been meaning to fix it for a long time. But I do not have enough free time and I am not allowed to work on VLC during my working hours.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Zingaro2002
Blank Cone
Blank Cone
Posts: 47
Joined: 30 May 2006 09:58

Re: simulating hotkeys press

Postby Zingaro2002 » 15 Sep 2010 11:21

ok, thank you for your wonderful job.

libvlc.dll is precious for developers!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests