Advertisement
Guest User

Apple Remote Windows 10 EventGhost Script

a guest
Jul 29th, 2016
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <EventGhost Version="1706" Guid="{245F884C-AD46-41C4-9C66-740529225D46}" Time="1458245405.72">
  3. <Autostart Name="Autostart" Expanded="True">
  4. <Plugin Identifier="Task" Guid="{D1748551-C605-4423-B392-FB77E6842437}" File="Task">
  5. gAIpLg==
  6. </Plugin>
  7. <Plugin Identifier="HID" Guid="{05A690D9-27C2-4AC5-B0DD-2F562619E922}" File="HID">
  8. gAIoWAAAAABxAImIiVVSXFw/XGhpZCN2aWRfMDVhYyZwaWRfODI0MiM3JjNhYmEzN2I2JjAmMDAwMCN7NGQxZTU1YjItZjE2Zi0xMWNmLTg4Y2ItMDAxMTExMDAwMDMwfXEBTawFWBQAAABBcHBsZSBDb21wdXRlciwgSW5jLnECTUKCWAsAAABJUiBSZWNlaXZlcnEDSxaJSwB0cQQu
  9. </Plugin>
  10. <Plugin Identifier="Process" Guid="{82BADF9F-D809-4EBC-A540-CCBF7563F8DF}" File="ProcessWatcher">
  11. gAIpLg==
  12. </Plugin>
  13. </Autostart>
  14. <Folder Name="AppleRemote" id="6" Enabled="False">
  15. <Macro Name="Select" Enabled="False">
  16. <Event Name="HID.2587EEA55D" />
  17. <Event Name="HID.2587EE6E5C" />
  18. <Action>
  19. EventGhost.PythonCommand(u'xbmcSelect = 1')
  20. </Action>
  21. <Action>
  22. EventGhost.EnableItem(XmlIdLink(15))
  23. </Action>
  24. <Action>
  25. EventGhost.Wait(0.14999999999999999)
  26. </Action>
  27. <Action>
  28. EventGhost.FlushEvents()
  29. </Action>
  30. <Action>
  31. EventGhost.TriggerEvent(u'XbmcSelect', 0.20000000000000001)
  32. </Action>
  33. </Macro>
  34. <Macro Name="Select (Hold)" id="15" Enabled="False">
  35. <Event Name="HID.2687EEA504" />
  36. <Event Name="HID.2687EE6E05" />
  37. <Action>
  38. EventGhost.PythonCommand(u'xbmcSelect = 0')
  39. </Action>
  40. <Action>
  41. Window.SendKeys(u'i', False)
  42. </Action>
  43. <Action>
  44. EventGhost.DisableItem(XmlIdLink(15))
  45. </Action>
  46. </Macro>
  47. <Macro Name="Pause/play" Enabled="False">
  48. <Event Name="HID.2587EEA55E" />
  49. <Event Name="HID.2587EE6E5F" />
  50. <Event Name="HID.2587EE1704" />
  51. <Action>
  52. EventGhost.DisableItem(XmlIdLink(15))
  53. </Action>
  54. <Action>
  55. Window.SendKeys(u'{Space}', False)
  56. </Action>
  57. <Action>
  58. EventGhost.Wait(0.10000000000000001)
  59. </Action>
  60. <Action>
  61. EventGhost.FlushEvents()
  62. </Action>
  63. </Macro>
  64. <Macro Name="Menu" Enabled="False">
  65. <Event Name="HID.2587EEA502" />
  66. <Event Name="HID.2587EE6E03" />
  67. <Event Name="HID.2587EE1702" />
  68. <Action>
  69. EventGhost.PythonCommand(u'xbmcBack = 1')
  70. </Action>
  71. <Action>
  72. EventGhost.EnableItem(XmlIdLink(38))
  73. </Action>
  74. <Action>
  75. EventGhost.Wait(0.20000000000000001)
  76. </Action>
  77. <Action>
  78. EventGhost.FlushEvents()
  79. </Action>
  80. <Action>
  81. EventGhost.TriggerEvent(u'XbmcBack', 0.25)
  82. </Action>
  83. </Macro>
  84. <Macro Name="Menu (hold)" id="38" Enabled="False">
  85. <Event Name="HID.2687EEA502" />
  86. <Event Name="HID.2687EE6E03" />
  87. <Action>
  88. EventGhost.PythonCommand(u'xbmcBack = 0')
  89. </Action>
  90. <Action>
  91. Window.SendKeys(u'{Apps}', False)
  92. </Action>
  93. <Action>
  94. EventGhost.DisableItem(XmlIdLink(38))
  95. </Action>
  96. </Macro>
  97. <Folder Name="Action" Enabled="False">
  98. <Macro Name="Select" Expanded="True">
  99. <Event Name="Main.XbmcSelect" />
  100. <Action>
  101. EventGhost.PythonScript(u'if eg.globals.xbmcSelect == 1: \n print "Enter sent"\n eg.plugins.Window.SendKeys(u\'{Return}\', False)\n eg.globals.xbmcSelect = 0\nelse:\n print "No enter"\n ')
  102. </Action>
  103. <Action>
  104. EventGhost.DisableItem(XmlIdLink(15))
  105. </Action>
  106. </Macro>
  107. <Macro Name="Back" Expanded="True">
  108. <Event Name="Main.XbmcBack" />
  109. <Action>
  110. EventGhost.PythonScript(u'if eg.globals.xbmcBack == 1:\n print "back sent"\n eg.plugins.Window.SendKeys(u\'{Backspace}\', False)\n xbmcBack = 0\nelse:\n print "no back"')
  111. </Action>
  112. <Action>
  113. EventGhost.DisableItem(XmlIdLink(38))
  114. </Action>
  115. </Macro>
  116. </Folder>
  117. <Folder Name="Navigation" Enabled="False">
  118. <Macro Name="Up" Enabled="False" Expanded="True">
  119. <Event Name="HID.2587EEA50B" />
  120. <Event Name="HID.2587EE6E0A" />
  121. <Action>
  122. Window.SendKeys(u'{Up}', False)
  123. </Action>
  124. <Action>
  125. EventGhost.Wait(0.10000000000000001)
  126. </Action>
  127. <Action>
  128. EventGhost.FlushEvents()
  129. </Action>
  130. </Macro>
  131. <Macro Name="Up (hold)" Enabled="False">
  132. <Event Name="HID.2687EEA50B" />
  133. <Event Name="HID.2687EE6E0A" />
  134. <Action>
  135. Window.SendKeys(u'{Up}', False)
  136. </Action>
  137. </Macro>
  138. <Macro Name="Left">
  139. <Event Name="HID.2587EEA508" />
  140. <Event Name="HID.2587EE6E09" />
  141. <Action>
  142. Window.SendKeys(u'{Left}', False)
  143. </Action>
  144. <Action>
  145. EventGhost.Wait(0.10000000000000001)
  146. </Action>
  147. <Action>
  148. EventGhost.FlushEvents()
  149. </Action>
  150. </Macro>
  151. <Macro Name="Left (hold)">
  152. <Event Name="HID.2687EEA508" />
  153. <Event Name="HID.2687EE6E09" />
  154. <Action>
  155. Window.SendKeys(u'{Left}', False)
  156. </Action>
  157. </Macro>
  158. <Macro Name="Down">
  159. <Event Name="HID.2587EEA50D" />
  160. <Event Name="HID.2587EE6E0C" />
  161. <Action>
  162. Window.SendKeys(u'{Down}', False)
  163. </Action>
  164. <Action>
  165. EventGhost.Wait(0.10000000000000001)
  166. </Action>
  167. <Action>
  168. EventGhost.FlushEvents()
  169. </Action>
  170. </Macro>
  171. <Macro Name="Down (hold)">
  172. <Event Name="HID.2687EEA50D" />
  173. <Event Name="HID.2687EE6E0C" />
  174. <Action>
  175. Window.SendKeys(u'{Down}', False)
  176. </Action>
  177. </Macro>
  178. <Macro Name="Right">
  179. <Event Name="HID.2587EEA507" />
  180. <Event Name="HID.2587EE6E06" />
  181. <Action>
  182. Window.SendKeys(u'{Right}', False)
  183. </Action>
  184. <Action>
  185. EventGhost.Wait(0.10000000000000001)
  186. </Action>
  187. <Action>
  188. EventGhost.FlushEvents()
  189. </Action>
  190. </Macro>
  191. <Macro Name="Right (hold)">
  192. <Event Name="HID.2687EEA507" />
  193. <Event Name="HID.2687EE6E06" />
  194. <Action>
  195. Window.SendKeys(u'{Right}', False)
  196. </Action>
  197. </Macro>
  198. </Folder>
  199. </Folder>
  200. <Folder Name="Windows" id="94" Expanded="True">
  201. <Folder Name="Navigation">
  202. <Macro Name="Up" Expanded="True">
  203. <Event Name="HID.2587EE170B" />
  204. <Action>
  205. Window.SendKeys(u'{Up}', False)
  206. </Action>
  207. <Action>
  208. EventGhost.Wait(0.10000000000000001)
  209. </Action>
  210. <Action>
  211. EventGhost.FlushEvents()
  212. </Action>
  213. </Macro>
  214. <Macro Name="Up (hold)" Expanded="True">
  215. <Event Name="HID.2687EE170B" />
  216. <Action>
  217. Window.SendKeys(u'{Up}', False)
  218. </Action>
  219. </Macro>
  220. <Macro Name="Left" Expanded="True">
  221. <Event Name="HID.2587EE1708" />
  222. <Action>
  223. Window.SendKeys(u'{Left}', False)
  224. </Action>
  225. <Action>
  226. EventGhost.Wait(0.10000000000000001)
  227. </Action>
  228. <Action>
  229. EventGhost.FlushEvents()
  230. </Action>
  231. </Macro>
  232. <Macro Name="Left (hold)" Enabled="False" Expanded="True">
  233. <Event Name="HID.2687EE1708" />
  234. <Action>
  235. Window.SendKeys(u'{Left}', False)
  236. </Action>
  237. </Macro>
  238. <Macro Name="Down" Expanded="True">
  239. <Event Name="HID.2587EE170D" />
  240. <Action>
  241. Window.SendKeys(u'{Down}', False)
  242. </Action>
  243. <Action>
  244. EventGhost.Wait(0.10000000000000001)
  245. </Action>
  246. <Action>
  247. EventGhost.FlushEvents()
  248. </Action>
  249. </Macro>
  250. <Macro Name="Down (hold)" Expanded="True">
  251. <Event Name="HID.2687EE170D" />
  252. <Action>
  253. Window.SendKeys(u'{Down}', False)
  254. </Action>
  255. </Macro>
  256. <Macro Name="Right" Expanded="True">
  257. <Event Name="HID.2587EE1707" />
  258. <Action>
  259. Window.SendKeys(u'{Right}', False)
  260. </Action>
  261. <Action>
  262. EventGhost.Wait(0.10000000000000001)
  263. </Action>
  264. <Action>
  265. EventGhost.FlushEvents()
  266. </Action>
  267. </Macro>
  268. <Macro Name="Right (hold)" Enabled="False" Expanded="True">
  269. <Event Name="HID.2687EE1707" />
  270. <Action>
  271. Window.SendKeys(u'{Right}', False)
  272. </Action>
  273. </Macro>
  274. <Macro Name="Back (Escape)" Expanded="True">
  275. <Event Name="HID.2587EE1702" />
  276. <Action>
  277. Window.SendKeys(u'{Escape}', False, 2)
  278. </Action>
  279. <Action>
  280. EventGhost.Wait(0.10000000000000001)
  281. </Action>
  282. <Action>
  283. EventGhost.FlushEvents()
  284. </Action>
  285. </Macro>
  286. </Folder>
  287. <Macro Name="Play/Pause" Expanded="True">
  288. <Event Name="HID.2587EE1702" />
  289. <Action Enabled="False">
  290. System.Execute(u'C:\\Program Files (x86)\\Plex Home Theater\\Plex Home Theater.exe', u'', 0, False, 2, u'', True, False, u'', False, False, False)
  291. </Action>
  292. <Action id="136">
  293. System.Execute(u'C:\\Program Files\\Plex\\Plex Media Player\\PlexMediaPlayer.exe', u'', 0, False, 2, u'', True, False, u'', False, False, False)
  294. </Action>
  295. <Action Enabled="False">
  296. EventGhost.Wait(0.10000000000000001)
  297. </Action>
  298. <Action Enabled="False">
  299. Window.BringToFront()
  300. </Action>
  301. <Action>
  302. EventGhost.DisableItem(XmlIdLink(136))
  303. </Action>
  304. </Macro>
  305. <Macro Name="Select" Expanded="True">
  306. <Event Name="HID.2587EE1704" />
  307. <Action>
  308. Window.SendKeys(u'{Enter}', False)
  309. </Action>
  310. </Macro>
  311. <Macro Name="Process Watcher" id="143" Expanded="True">
  312. <Event Name="Process.Destroyed.PlexMediaPlayer" />
  313. <Action>
  314. EventGhost.EnableItem(XmlIdLink(136))
  315. </Action>
  316. </Macro>
  317. </Folder>
  318. <Folder Name="Starter" Enabled="False">
  319. <Macro Name="Enable: Xbmc/Kodi" Expanded="True">
  320. <Event Name="Task.Activated.Xbmc" />
  321. <Event Name="Task.Activated.Kodi" />
  322. <Action>
  323. EventGhost.DisableItem(XmlIdLink(94))
  324. </Action>
  325. <Action>
  326. EventGhost.EnableItem(XmlIdLink(6))
  327. </Action>
  328. <Action>
  329. EventGhost.PythonCommand(u'xbmcSelect = 0')
  330. </Action>
  331. <Action>
  332. EventGhost.PythonCommand(u'xbmcBack = 0')
  333. </Action>
  334. </Macro>
  335. <Macro Name="Disable: Xbmc/Kodi" Expanded="True">
  336. <Event Name="Task.Deactivated.Xbmc" />
  337. <Event Name="Task.Deactivated.Kodi" />
  338. <Action>
  339. EventGhost.EnableItem(XmlIdLink(94))
  340. </Action>
  341. <Action>
  342. EventGhost.DisableItem(XmlIdLink(6))
  343. </Action>
  344. </Macro>
  345. <Macro Name="Exit: Xbmc/Kodi" Expanded="True">
  346. <Event Name="Task.Destroyed.Xbmc" />
  347. <Event Name="Task.Destroyed.Kodi" />
  348. <Action>
  349. EventGhost.EnableItem(XmlIdLink(94))
  350. </Action>
  351. <Action>
  352. EventGhost.DisableItem(XmlIdLink(6))
  353. </Action>
  354. <Action Name="Enable: Play/Pause in Windows">
  355. EventGhost.EnableItem(XmlIdLink(143))
  356. </Action>
  357. </Macro>
  358. </Folder>
  359. </EventGhost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement