PDA

View Full Version : WMP plugin HELP with keys!!!


paul186
12-23-2008, 04:00 PM
hi, i have a very big problem...
my app opens a video loaded from a web in the wmp plugin in full screen (all of this on page show) and i want that when the user presses for example the down arrow (e_key == 40...) makes other action, like load another diferent video... but when the wmp plugins is playing in full screen none of the page -> on key scripts work...

any idea of how can i make it work?

PD. sorry for my bad engligh

longedge
12-24-2008, 01:01 AM
Where have you put the code that is testing for the key stroke? Have you tried starting the page timer on say 250 msecs and putting the code in the on timer event?

paul186
12-24-2008, 05:08 AM
Where have you put the code that is testing for the key stroke? Have you tried starting the page timer on say 250 msecs and putting the code in the on timer event?

i do what you said but... nothing, when the wmp plugin is in fullscreen the keys didnt work :huh

here is the code:
-- Get the indexes of the items currently selected in the listbox.
selected_items = ListBox.GetSelected("ListBox1");

-- If there were items selected in the listbox, display a dialog with their indexes.
-- If no items were selected, display a notification message.
if (selected_items ~= nil) then
output = "";
for index, item in selected_items do
output = output..item.."\r\n";
end


--when user press down key, a down channel of the listbox is turned and the channel never could be less than 0
canalmenos = output -1
if canalmenos == 0 then
canalmenos = 1
end

--if the user press up arrow an upper channel will be turned
canalmas = output +1
if canalmas == 0 then
canalmas = 1
end

--now the user press up arrow
if e_Key == 38 then
-- chanel +1
ListBox.SelectItem("ListBox1", canalmas);

end
--user press down arrow
if e_Key == 40 then
-- chanel -1
ListBox.SelectItem("ListBox1", canalmenos);
end
end

I have a WMP player plugin and a listbox with for example:
index 1 - name: BBC - data: the link to the bbc.asp
index 2 - name: Discovery channel - data: the link to the discovery_channel.asp

and i want that when the user is viewing one of theres channels at fullscreen and press up or down key that navigate for the listbox without exiting fullscreen

Resuming: i want to change channel with up and down arrow keys without exiting fullscreen

PD.i tried with page -> on timer (250ms) and on page _> on key but none work...

abdsh
12-26-2008, 03:00 PM
you can't used keys in fullsecreen mode

becouse on fullscreen mode you are not on the project window

just the wmp keys worked

ctrl+p .. etc

best wishes :)