PDA

View Full Version : Searching for KMPlayer keyboard code


stecaro
06-26-2010, 09:51 PM
Hi everybody,
I find a plug-in to control KMPlayer with EventGhost but some commands are missing.

example:
(eg.ActionGroup, 'DVD', 'DVD', None, (
(MsgAction,'SubpictureMenu','SubpictureMenu', None, 0x30),
(MsgAction,'AudioMenu','AudioMenu', None, 0x31),
(MsgAction,'AngleMenu','AngleMenu', None, 0x32),
(MsgAction,'MoveMenu','MoveMenu', None, 0x33),
(MsgAction,'PrevChapter','PrevChapter', None, 0x34),
(MsgAction,'NextChapter','NextChapter', None, 0x35)

I would like to add the following lines to be able to navigate thru DVD Menu but I don't know the respective code:

(MsgAction,'Left','Left', None, 0x??),
(MsgAction,'Right','Right', None, 0x??),
(MsgAction,'Up','Up', None, 0x??),
(MsgAction,'Down','Down', None, 0x??),

Can anyone help?

stecaro
06-28-2010, 09:30 PM
I solve my problem using the Emulates Keystrokes action of EventGhost

ex:
- <Macro Name="Left" Expanded="True">
<Event Name="XBCDRC.LEFT" />
<Action>Window.SendKeys(u'{Left}', False)</Action>
</Macro>
- <Macro Name="Right" Expanded="True">
<Event Name="XBCDRC.RIGHT" />
<Action>Window.SendKeys(u'{Right}', False)</Action>
</Macro>
- <Macro Name="Up" Expanded="True">
<Event Name="XBCDRC.UP" />
<Action>Window.SendKeys(u'{Up}', False)</Action>
</Macro>
- <Macro Name="Down" Expanded="True">
<Event Name="XBCDRC.DOWN" />
<Action>Window.SendKeys(u'{Down}', False)</Action>
</Macro>
- <Macro Name="Enter" Expanded="True">
<Event Name="XBCDRC.SELECT" />
<Action>Window.SendKeys(u'{Enter}', False)</Action>
</Macro>