activeX DVD menu navigation (setvarible)

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.
benedict101
New Cone
New Cone
Posts: 2
Joined: 25 Jul 2005 13:56

activeX DVD menu navigation (setvarible)

Postby benedict101 » 25 Jul 2005 14:07

Hello,

I'm trying to navigate a DVD menu from the activeX plugin. The activeX object responds to the mouse but I can't figure out how to get it to respond to the keyboard.

I guess I can do this with the setvarible command in conjunction with a keypress event, but I have no idea which varible to set.

Is there a list of varibles and possible values for the setvarible command?

Cheers
Benedict

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 » 25 Jul 2005 15:02

The variable you seek is "key-pressed". You can fill it with the integer value of any ascii key value. Modifiers are special integers which need to be OR'd with the ascii value if you want to pass them. these values are in include/vlc_keys.h
Don't use PMs for support questions.

benedict101
New Cone
New Cone
Posts: 2
Joined: 25 Jul 2005 13:56

Postby benedict101 » 25 Jul 2005 18:28

I'm having a dumb moment.

I'm using the following js function to move the cursor down:


function vlc_testbtn_onclick(){
vlc_player.setVariable("key-pressed", "031");
}


(acording to [http]http://www.jimprice.com/ascii-0-127.jpg[/http]
31 is the ascii code for down)

I doesn't work. What am I doing wrong? Have I misunderstood how to use setvariable?

Cheers
Benedict

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 » 25 Jul 2005 20:33

Ok, not only modifiers, any NON letter, has it's own code in VLC. (Reason being that ascii values for non letters are not the same on different kinds of Operating Systems.

vlc_keys.h reveals that the definition for KEY_DOWN is 0x00040000 (that is in hexadecimal, not decimal)
Don't use PMs for support questions.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 39 guests