-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.MCEControl.commands
More file actions
183 lines (159 loc) · 10 KB
/
Copy pathExample.MCEControl.commands
File metadata and controls
183 lines (159 loc) · 10 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?xml version="1.0" encoding="utf-8"?>
<MCEController xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Commands xmlns="http://www.kindel.com/products/mcecontroller">
<!--
MCE Controller Example Commands File
Copyright 2013 Kindel Sytems, LLC.
===================================================================
Modify this file to extend/change the commands MCE Controller
supports.
This file must be named MCEControl.commands and must be placed
in the same directory as the MCEControl.exe file.
===================================================================
See the documentation at http://mcec.codeplex.com/documentation for
full details on the commands supported by MCE Controller.
The following types of commands can be defined in this
file, which is read when MCE Controller starts. Any commands
defined in MCEControl.commands will override built-in commands.
StartProcess - Starts the specified process.
SetForgroundWindow - Causes the specified window to be brought
to the foreground.
Shutdown - Allows the host computer to be shutdown, restarted,
put in standby, or hibernate mode.
SendMessage - Enables the sending of window messages to windows.
E.g. the 'mcemaximize' command causes the Media Center window to
go full screen.
SendInput - Sends keyboard input to the forground window. All
standard keystrokes are supported by default. For the default
keyboard keystrokes the Cmd key is either the keyboard letter
(e.g. "A" or "a") or a virutal key-code name (e.g. "VK_UP" or
"vk_up").
MCE Controller supports a special set of built-in commands which
can NOT be overridden here. The built-in commands include:
Single characters, 'chars:', 'shiftdown:', 'shiftup:', and
'mouse:'.
==================================================================
StartProcess Commands
File: The full path to the executable you want to start.
<nextCommand> element: Can contain other commands you want
invoked after the process
has started.
The following command starts Media Center and makes it full screen
==================================================================
<StartProcess Cmd="mcestart" File="C:\windows\ehome\ehshell.exe">
<nextCommand xsi:type="SendMessage"
ClassName="ehshell"
Msg="274" wParam="61488" lParam="0" />
</StartProcess>
<StartProcess Cmd="notepad" File="C:\windows\system32\notepad.exe" />
<StartProcess Cmd="netflix" File="windowsmediacenterapp:{e6f46126-f8a9-4a97-9159-b70b07890112}\{982ea9d3-915c-4713-a3c8-99a4688b7c59}?EntryPointParameters="/>
===================================================================
SetForgroundWindow Commands
ClassName: The windows classname of the applicaton window
you want in the foreground.
===================================================================
<SetForegroundWindow Cmd="mceactivate" ClassName="ehshell"/>
===================================================================
Shutdown Commands
Type: One of shutdown, restart, abort, standby, or hibernate.
===================================================================
<Shutdown Cmd="shutdown" Type="shutdown"/>
<Shutdown Cmd="restart" Type="restart"/>
<Shutdown Cmd="abort" Type="abort"/>
<Shutdown Cmd="standby" Type="standby"/>
<Shutdown Cmd="hibernate" Type="hibernate"/>
===================================================================
SendMessage Commands
ClassName: The windows classnmae of the applicaton window
the windows message will be sent to.
Msg: Integer (in decimal) representing the WM_ message
wParam: Integer (in decimal) representing the wParam
lParam: Integer (in decimal) representing the lParam
===================================================================
<SendMessage Cmd="mcemaximize" ClassName="ehshell"
Msg="274" wParam="61488" lParam="0" />
<SendMessage Cmd="maximizenotepad" ClassName="Notepad"
Msg="274" wParam="61488" lParam="0" />
<SendMessage Cmd="maximize" Msg="274" wParam="61488" lParam="0" />
<SendMessage Cmd="screensaver" Msg="274" wParam="61760" lParam="0" />
<SendMessage Cmd="monitoroff" Msg="274" wParam="61808" lParam="2" />
<SendMessage Cmd="monitoron" Msg="274" wParam="61808" lParam="-1" />
===================================================================
SendInput Commands
vk: Windows virtual keycode for the key to simulate. Can be
decimal, hex (e.g. "0x46"), or a VK_ constant (e.g.
"VK_VOLUME_UP")
Shift: Simulate shift key down
Ctrl: Simulate ctrl key down
Alt: Simulate alt key down
Win: Simulate left Windows key down (right not supported)
Note that by, default all Windows' VK_ constants are supported
commands. E.g. <SendInput Cmd="VK_UP" vk="VK_UP"/> is pre-
defined. These can be overridden here.
The commands provided below are EXAMPLES.
===================================================================
<SendInput Cmd="atlesc" vk="VK_ESCAPE" Alt="true" />
<SendInput Cmd="wintab" vk="VK_TAB" Win="true" />
<SendInput Cmd="close" vk="VK_F4" Alt="true" />
<SendInput Cmd="ctrl-F1" vk="0x70" Ctrl="true" />
<SendInput Cmd="winkey" vk="VK_LWIN"/>
<SendInput Cmd="desktop" vk="VK_D" Win="true"/>
<SendInput Cmd="winsearch" vk="VK_Q" Win="true"/>
<SendInput Cmd="Windows Explorer" vk="VK_E" Shift="false" Ctrl="false" Alt="false" Win="true" />
<SendInput Cmd="Windows Desktop" vk="VK_D" Shift="false" Ctrl="false" Alt="false" Win="true" />
<SendInput Cmd="run" vk="VK_R" Shift="false" Ctrl="false" Alt="false" Win="true" />
<SendInput Cmd="Tile Left" vk="37" Shift="false" Ctrl="false" Alt="false" Win="true" />
<SendInput Cmd="Tile Right" vk="39" Shift="false" Ctrl="false" Alt="false" Win="true" />
<SendInput Cmd="back" vk="8" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="vol-" vk="VK_VOLUME_DOWN" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="vol+" vk="VK_VOLUME_UP" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="mute" vk="VK_VOLUME_MUTE" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="pause" vk="VK_MEDIA_PLAY_PAUSE" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="play" vk="VK_MEDIA_PLAY_PAUSE" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="ctrl-x" vk="VK_X" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="cc" vk="67" Shift="true" Ctrl="true" Alt="false" />
<SendInput Cmd="ch+" vk="187" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="ch-" vk="189" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="dvdaudio" vk="65" Shift="true" Ctrl="true" Alt="false" />
<SendInput Cmd="dvdmenu" vk="77" Shift="true" Ctrl="true" Alt="false" />
<SendInput Cmd="dvdsubtitle" vk="85" Shift="true" Ctrl="true" Alt="false" />
<SendInput Cmd="execute" vk="43" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="fwd" vk="70" Shift="true" Ctrl="true" Alt="false" />
<SendInput Cmd="guide" vk="71" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="prior" vk="33" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="livetv" vk="84" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="greenbutton" vk="13" Shift="false" Ctrl="false" Alt="true" Win="true" />
<SendInput Cmd="mymusic" vk="77" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="mypictures" vk="73" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="mytv" vk="84" Shift="true" Ctrl="true" Alt="false" />
<SendInput Cmd="myvideos" vk="69" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="record" vk="82" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="recordedtv" vk="79" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="rew" vk="66" Shift="true" Ctrl="true" Alt="false" />
<SendInput Cmd="stop" vk="83" Shift="true" Ctrl="true" Alt="false" />
<SendInput Cmd="skipback" vk="66" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="skipfwd" vk="70" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="enter" vk="13" shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="escape" vk="27" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="delete" vk="46" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="end" vk="35" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="left" vk="37" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="up" vk="38" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="right" vk="39" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="down" vk="40" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="help" vk="47" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="home" vk="36" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="insert" vk="45" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="select" vk="41" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="moreinfo" vk="68" Shift="false" Ctrl="true" Alt="false" />
<SendInput Cmd="close" vk="115" Shift="false" Ctrl="false" Alt="true" />
<SendInput Cmd="next" vk="34" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="ok" vk="13" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="print" vk="42" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="tab" vk="9" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="snapshot" vk="44" Shift="false" Ctrl="false" Alt="false" />
<SendInput Cmd="zoom" vk="90" Shift="false" Ctrl="false" Alt="false" />
-->
</Commands>
</MCEController>