Advertisement
Guest User

HotKeyNet 5 Window Swapping with Focusless, targetless, 'leaderless' (FTL)

a guest
Oct 20th, 2010
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.98 KB | None | 0 0
  1. // Tab - Toggles hot keys on or off
  2. // Ctrl Alt A - Toggle active window tracking
  3. // Ctrl Alt L - Launch 5 instances of world of warcraft
  4. // Ctrl Alt X - Make the active window the main window
  5. // Ctrl Alt F1 - Make WoW1 the main window
  6. // Ctrl Alt F2 - Make WoW2 the main window
  7. // Ctrl Alt F3 - Make WoW3 the main window
  8. // Ctrl Alt F4 - Make WoW4 the main window
  9. // Ctrl Alt F5 - Make WoW5 the main window
  10. // Ctrl Alt D Arrange the windows in the default layout
  11. // Ctrl Alt 1 - relaunch WoW1
  12. // Ctrl Alt 2 - relaunch WoW2
  13. // Ctrl Alt 3 - relaunch WoW3
  14. // Ctrl Alt 4 - relaunch WoW4
  15. // Ctrl Alt 5 - relaunch WoW5
  16. // Keys 1 - 0 and the minus key are sent to all windows
  17.  
  18. //-----------------------------------------------------------
  19. // Launch and rename world of warcraft
  20. //-----------------------------------------------------------
  21. <Command LaunchAndRename>
  22. <SendPC local>
  23. <Run "C:\Users\Public\Games\World of Warcraft\WoW.exe">
  24. <RenameTargetWin %1%>
  25.  
  26. //-----------------------------------------------------------
  27. // Template: SetPos Command
  28. //
  29. // %1% - Window number. (1, 2, 3, 4 or 5)
  30. // %2% - Window name. Passed as a parameter value by callers.
  31. // %3% - Window X coordinate
  32. // %4% - Window Y coordinate
  33. // %5% - Window Width
  34. // %6% - Window Height
  35. //-----------------------------------------------------------
  36. <Template SetPos>
  37. <Command SetPos%1%>
  38. <SetVar Win%1% %2%>
  39. <TargetWin %2%>
  40. <SetWinPos %3% %4%>
  41. <SetWinSize %5% %6%>
  42. <UpdateWin>
  43. <EndTemplate>
  44.  
  45. //-----------------------------------------------------------
  46. // ApplyTemplate: SetPos1 Command
  47. //-----------------------------------------------------------
  48. <ApplyTemplate SetPos 1 "%1%" "0" "0" "965" "795">
  49.  
  50. //-----------------------------------------------------------
  51. // ApplyTemplate: SetPos2 Command
  52. //-----------------------------------------------------------
  53. <ApplyTemplate SetPos 2 "%1%" "0" "795" "965" "795">
  54.  
  55. //-----------------------------------------------------------
  56. // ApplyTemplate: SetPos3 Command
  57. //-----------------------------------------------------------
  58. <ApplyTemplate SetPos 3 "%1%" "965" "0" "795" "660">
  59.  
  60. //-----------------------------------------------------------
  61. // ApplyTemplate: SetPos4 Command
  62. //-----------------------------------------------------------
  63. <ApplyTemplate SetPos 4 "%1%" "1760" "0" "795" "660">
  64.  
  65. //-----------------------------------------------------------
  66. // ApplyTemplate: SetPos5 Command
  67. //-----------------------------------------------------------
  68. <ApplyTemplate SetPos 5 "%1%" "965" "660" "1135" "930">
  69.  
  70. //-----------------------------------------------------------
  71. // Default Window Layout
  72. //-----------------------------------------------------------
  73. <Command DefaultWindowLayout>
  74. // Win1 position
  75. <SetPos1 WoW1>
  76.  
  77. // Win2 position
  78. <SetPos2 WoW3>
  79.  
  80. // Win3 position
  81. <SetPos3 WoW5>
  82.  
  83. // Win4 position
  84. <SetPos4 WoW4>
  85.  
  86. // Win5 position
  87. <SetPos5 WoW2>
  88.  
  89. //-----------------------------------------------------------
  90. // Template: Swap Command
  91. //
  92. // There are five window positions. Each window position has
  93. // a number assigned to it. This command swaps the positions
  94. // of two windows with one another.
  95. //
  96. // %1% - Window Position Number for window A
  97. // %2% - Window Position Number for window B
  98. // %3% - Window name of the window to be placed at position A
  99. // %4% - Window name of the window to be placed at position B
  100. //-----------------------------------------------------------
  101. <Template Swap>
  102. <Command Swap%1%And%2%>
  103. // Win%1% position
  104. <SetPos%1% %3%>
  105.  
  106. // Win%2% position
  107. <SetPos%2% %4%>
  108. <EndTemplate>
  109.  
  110. //-----------------------------------------------------------
  111. // ApplyTemplate: Swap1and5 Command
  112. //-----------------------------------------------------------
  113. <ApplyTemplate Swap 1 5 "%2%" "%1%">
  114.  
  115. //-----------------------------------------------------------
  116. // ApplyTemplate: Swap2and5 Command
  117. //-----------------------------------------------------------
  118. <ApplyTemplate Swap 2 5 "%2%" "%1%">
  119.  
  120. //-----------------------------------------------------------
  121. // ApplyTemplate: Swap3and5 Command
  122. //-----------------------------------------------------------
  123. <ApplyTemplate Swap 3 5 "%2%" "%1%">
  124.  
  125. //-----------------------------------------------------------
  126. // ApplyTemplate: Swap4and5 Command
  127. //-----------------------------------------------------------
  128. <ApplyTemplate Swap 4 5 "%2%" "%1%">
  129.  
  130. //---------------------------------------------
  131. // Display green HKN if HotkeyNet is forwarding keys
  132. // Display green AWT if active window tracking is enabled
  133. // Default to off
  134. //----------------------------------------------
  135. <Command AutoExec>
  136. // Initialise the HKN indicator
  137. <DoHotKey Hotkey NumLockOn Alt Ctrl Shift H>
  138. // Initialise the AWT indicator
  139. <DoHotKey Hotkey NumLockOn Alt Ctrl Shift A>
  140. // turn hotkeys off
  141. <DoHotKey Hotkey NumLockOn Alt Ctrl Shift T>
  142. <SetActiveWindowTracking Off>
  143. <SetVar ActOff true>
  144. <DefaultWindowLayout>
  145.  
  146.  
  147. //-----------------------------------------------------------
  148. // Initialise HKN window - NumLockOn Alt Ctrl Shift H
  149. //-----------------------------------------------------------
  150. <Hotkey NumLockOn Alt Ctrl Shift H>
  151. <If WinDoesNotExist HKN>
  152. <CreatePanel HKN 2500 1535 30 30>
  153. <TargetWin HKN>
  154. <CreateColoredButton ON 0 0 30 30 0x00FF00 0x0F0F0F ???>
  155. <AddButtonToPanel ON HKN>
  156. <SetButtonText ON HKN>
  157. <TargetWin HKN>
  158. <AlwaysOnTop on>
  159. <RemoveWinFrame>
  160. <UpdateWin>
  161. <EndIf>
  162. <SetButtonColors ON 0xfF0000 0xffFFff >
  163. <SetButtonText ON off>
  164.  
  165. //-----------------------------------------------------------
  166. // Initialise AWT window - NumLockOn Alt Ctrl Shift A
  167. //-----------------------------------------------------------
  168. <Hotkey NumLockOn Alt Ctrl Shift A>
  169. <If WinDoesNotExist AWT>
  170. <CreatePanel AWT 2400 1535 30 30>
  171. <TargetWin AWT>
  172. <CreateColoredButton ACT 0 0 30 30 0x0000FF 0xFFFFFF ???>
  173. <AddButtonToPanel ACT AWT>
  174. <SetButtonText ACT AWT>
  175. <TargetWin AWT>
  176. <AlwaysOnTop on>
  177. <RemoveWinFrame>
  178. <UpdateWin>
  179. <endif>
  180. <SetButtonColors ACT 0xfF0000 0xffFFff >
  181. <SetButtonText ACT off>
  182.  
  183. //-----------------------------------------------------------
  184. // Hot keys off - NumLockOn Alt Ctrl Shift T
  185. //-----------------------------------------------------------
  186. <Hotkey NumLockOn Alt Ctrl Shift T>
  187. <If HotkeysAreOn>
  188. <TurnHotkeysOff>
  189. <EndIf>
  190.  
  191. //-----------------------------------------------------------
  192. // Template: Conditional1
  193. //
  194. // %1% - Alt Ctrl Shift %1% identifier for the conditions
  195. // %2% - Window name at position 5 in first condition
  196. // %3% - Window position number of window to swap with %2%
  197. // %4% - Window name at position %3%
  198. // %5% - Window name at position 5 in second condition
  199. //-----------------------------------------------------------
  200. <Template Conditional1>
  201. <Hotkey Alt Ctrl Shift %1%>
  202. <If Win5 Is WoW%2%>
  203. <Swap%3%And5 WoW%4% WoW%2%>
  204. <Else If Win5 Is WoW%5%>
  205. <Swap%3%And5 WoW%4% WoW%5%>
  206. <EndIf>
  207. <EndTemplate>
  208.  
  209. //-----------------------------------------------------------
  210. // Template: Conditional2
  211. //
  212. // %1% - Alt Ctrl Shift %1% identifier for the conditions
  213. // %2% - Window name at position 5 in first condition
  214. // %3% - Window position number of window to swap with %2%
  215. // %4% - Window name at position %3%
  216. // %5% - Window name at position 5 in second condition
  217. // %6% - Hotkey to call if the other two conditions fail
  218. //-----------------------------------------------------------
  219. <Template Conditional2>
  220. <Hotkey Alt Ctrl Shift %1%>
  221. <If Win5 Is WoW%2%>
  222. <Swap%3%And5 WoW%4% WoW%2%>
  223. <Else If Win5 Is WoW%5%>
  224. <Swap%3%And5 WoW%4% WoW%5%>
  225. <Else>
  226. <DoHotkey Hotkey Alt Ctrl Shift %6%>
  227. <EndIf>
  228. <EndTemplate>
  229.  
  230. //-----------------------------------------------------------
  231. // Template: Conditional3
  232. //
  233. // %1% - Alt Ctrl Shift %1% identifier for the conditions
  234. // %2% - Window name at position 3 or 4 in the conditional
  235. // %3% - Hotkey to call if first condition succeeds
  236. // %4% - Hotkey to call if second condition succeeds
  237. //-----------------------------------------------------------
  238. <Template Conditional3>
  239. <Hotkey Alt Ctrl Shift %1%>
  240. <If Win3 Is WoW%2%>
  241. <DoHotkey Hotkey Alt Ctrl Shift %3%>
  242. <Else If Win4 Is WoW%2%>
  243. <DoHotkey Hotkey Alt Ctrl Shift %4%>
  244. <EndIf>
  245. <EndTemplate>
  246.  
  247. //-----------------------------------------------------------
  248. // Template: Conditional4
  249. //
  250. // %1% - Alt Ctrl Shift %1% identifier for the conditions
  251. // %2% - Window position to check in the condition statement
  252. // %3% - Window name at position %2% in the condition statement
  253. // %4% - Hotkey to call if the condition succeeds
  254. // %5% - Hotkey to call if the condition fails
  255. //-----------------------------------------------------------
  256. <Template Conditional4>
  257. <Hotkey Alt Ctrl Shift %1%>
  258. <If Win%2% Is WoW%3%>
  259. <DoHotkey Hotkey Alt Ctrl Shift %4%>
  260. <Else>
  261. <DoHotkey Hotkey Alt Ctrl Shift %5%>
  262. <EndIf>
  263. <EndTemplate>
  264.  
  265. //----------------------------------------------- Win4 - WoW1
  266. // Alt Ctrl X
  267. // If MouseIsOverWindow WoW1
  268. // If Win4 Is WoW1 (caller: Alt Ctrl Shift .)
  269. //
  270. // ----------------------------------------- Alt Ctrl Shift /
  271. //
  272. //-----------------------------------------------------------
  273. <ApplyTemplate Conditional1 Oem2 4 4 1 5>
  274.  
  275. //----------------------------------------------- Win4 - WoW1
  276. // Alt Ctrl X
  277. // If MouseIsOverWindow WoW1
  278. // If Win4 Is WoW1 (caller: Alt Ctrl Shift N)
  279. //
  280. // ----------------------------------------- Alt Ctrl Shift .
  281. //
  282. //-----------------------------------------------------------
  283. <ApplyTemplate Conditional2 Period 2 4 1 3 Oem2>
  284.  
  285. //----------------------------------------------- Win3 - WoW1
  286. // Alt Ctrl X
  287. // If MouseIsOverWindow WoW1
  288. // If Win3 Is WoW1 (caller: Alt Ctrl Shift M)
  289. //
  290. // ----------------------------------------- Alt Ctrl Shift ,
  291. //
  292. //-----------------------------------------------------------
  293. <ApplyTemplate Conditional1 Comma 4 3 1 5>
  294.  
  295. //----------------------------------------------- Win3 - WoW1
  296. // Alt Ctrl X
  297. // If MouseIsOverWindow WoW1
  298. // If Win3 Is WoW1 (Alt Ctrl Shift N)
  299. //
  300. // ----------------------------------------- Alt Ctrl Shift M
  301. //
  302. //-----------------------------------------------------------
  303. <ApplyTemplate Conditional2 M 2 3 1 3 Comma>
  304.  
  305. //------------------------------------------------------ WoW1
  306. // Alt Ctrl X
  307. // If MouseIsOverWindow WoW1 (caller: Alt Ctrl Shift C)
  308. //
  309. // ----------------------------------------- Alt Ctrl Shift N
  310. //
  311. //-----------------------------------------------------------
  312. <ApplyTemplate Conditional3 N 1 M Period>
  313.  
  314. //----------------------------------------------- Win2 - WoW1
  315. // Alt Ctrl X
  316. // If MouseIsOverWindow WoW1
  317. // If Win2 Is WoW1 (caller: Alt Ctrl Shift V)
  318. //
  319. // ----------------------------------------- Alt Ctrl Shift B
  320. //
  321. //-----------------------------------------------------------
  322. <ApplyTemplate Conditional1 B 4 2 1 5>
  323.  
  324. //----------------------------------------------- Win2 - WoW1
  325. // Alt Ctrl X
  326. // If MouseIsOverWindow WoW1
  327. // If Win2 Is WoW1 (caller: Alt Ctrl Shift C)
  328. //
  329. // ----------------------------------------- Alt Ctrl Shift V
  330. //
  331. //-----------------------------------------------------------
  332. <ApplyTemplate Conditional2 V 2 2 1 3 B>
  333.  
  334. //------------------------------------------------------ WoW1
  335. // Alt Ctrl X
  336. // If MouseIsOverWindow WoW1 (caller: Alt Ctrl Shift Oem5)
  337. //
  338. // ----------------------------------------- Alt Ctrl Shift C
  339. //
  340. //-----------------------------------------------------------
  341. <ApplyTemplate Conditional4 C 2 1 V N>
  342.  
  343. //----------------------------------------------- Win1 - WoW1
  344. // Alt Ctrl X
  345. // If MouseIsOverWindow WoW1
  346. // If Win1 Is WoW1 (caller: Alt Ctrl Shift Z)
  347. //
  348. // ----------------------------------------- Alt Ctrl Shift X
  349. //
  350. //-----------------------------------------------------------
  351. <ApplyTemplate Conditional1 X 4 1 1 5>
  352.  
  353. //----------------------------------------------- Win1 - WoW1
  354. // Alt Ctrl X
  355. // If MouseIsOverWindow WoW1
  356. // If Win1 Is WoW1 (caller: Alt Ctrl Shift Oem5)
  357. //
  358. // ----------------------------------------- Alt Ctrl Shift Z
  359. //
  360. //-----------------------------------------------------------
  361. <ApplyTemplate Conditional2 Z 2 1 1 3 X>
  362.  
  363. //------------------------------------------------------ WoW1
  364. // Set WoW1 Main Window
  365. //------------------------------------------------------ WoW1
  366. // Alt Ctrl X
  367. // If MouseIsOverWindow WoW1 (caller: Alt Ctrl F6)
  368. //
  369. // ----------------------------------------- Alt Ctrl Shift \
  370. //
  371. //-----------------------------------------------------------
  372. <ApplyTemplate Conditional4 "Oem5; Alt Ctrl F1" 1 1 Z C>
  373.  
  374. //----------------------------------------------- Win4 - WoW2
  375. // Alt Ctrl X
  376. // If MouseIsOverWindow WoW2
  377. // If Win4 Is WoW2 (caller: Alt Ctrl Shift ;)
  378. //
  379. // ----------------------------------------- Alt Ctrl Shift '
  380. //
  381. //-----------------------------------------------------------
  382. <ApplyTemplate Conditional1 Oem3 4 4 2 5>
  383.  
  384. //----------------------------------------------- Win4 - WoW2
  385. // Alt Ctrl X
  386. // If MouseIsOverWindow WoW2
  387. // If Win4 Is WoW2 (caller: Alt Ctrl Shift J)
  388. //
  389. // ----------------------------------------- Alt Ctrl Shift ;
  390. //
  391. //-----------------------------------------------------------
  392. <ApplyTemplate Conditional2 Oem1 1 4 2 3 Oem3>
  393.  
  394. //----------------------------------------------- Win3 - WoW2
  395. // Alt Ctrl X
  396. // If MouseIsOverWindow WoW2
  397. // If Win3 Is WoW2 (caller: Alt Ctrl Shift K)
  398. //
  399. // ----------------------------------------- Alt Ctrl Shift L
  400. //
  401. //-----------------------------------------------------------
  402. <ApplyTemplate Conditional1 L 4 3 2 5>
  403.  
  404. //----------------------------------------------- Win3 - WoW2
  405. // Alt Ctrl X
  406. // If MouseIsOverWindow WoW2
  407. // If Win3 Is WoW2 (Alt Ctrl Shift J)
  408. //
  409. // ----------------------------------------- Alt Ctrl Shift K
  410. //
  411. //-----------------------------------------------------------
  412. <ApplyTemplate Conditional2 K 1 3 2 3 L>
  413.  
  414. //------------------------------------------------------ WoW2
  415. // Alt Ctrl X
  416. // If MouseIsOverWindow WoW2 (caller: Alt Ctrl Shift F)
  417. //
  418. // ----------------------------------------- Alt Ctrl Shift J
  419. //
  420. //-----------------------------------------------------------
  421. <ApplyTemplate Conditional3 J 2 K Oem1>
  422.  
  423. //----------------------------------------------- Win2 - WoW2
  424. // Alt Ctrl X
  425. // If MouseIsOverWindow WoW2
  426. // If Win2 Is WoW2 (caller: Alt Ctrl Shift G)
  427. //
  428. // ----------------------------------------- Alt Ctrl Shift H
  429. //
  430. //-----------------------------------------------------------
  431. <ApplyTemplate Conditional1 H 4 2 2 5>
  432.  
  433. //----------------------------------------------- Win2 - WoW2
  434. // Alt Ctrl X
  435. // If MouseIsOverWindow WoW2
  436. // If Win2 Is WoW2 (caller: Alt Ctrl Shift F)
  437. //
  438. // ----------------------------------------- Alt Ctrl Shift G
  439. //
  440. //-----------------------------------------------------------
  441. <ApplyTemplate Conditional2 G 1 2 2 3 H>
  442.  
  443. //------------------------------------------------------ WoW2
  444. // Alt Ctrl X
  445. // If MouseIsOverWindow WoW2 (caller: Alt Ctrl Shift A)
  446. //
  447. // ----------------------------------------- Alt Ctrl Shift F
  448. //
  449. //-----------------------------------------------------------
  450. <ApplyTemplate Conditional4 F 2 2 G J>
  451.  
  452. //----------------------------------------------- Win1 - WoW2
  453. // Alt Ctrl X
  454. // If MouseIsOverWindow WoW2
  455. // If Win1 Is WoW2 (caller: Alt Ctrl Shift S)
  456. //
  457. // ----------------------------------------- Alt Ctrl Shift D
  458. //
  459. //-----------------------------------------------------------
  460. <ApplyTemplate Conditional1 D 4 1 2 5>
  461.  
  462. //----------------------------------------------- Win1 - WoW2
  463. // Alt Ctrl X
  464. // If MouseIsOverWindow WoW2
  465. // If Win1 Is WoW2 (caller: Alt Ctrl Shift A)
  466. //
  467. // ----------------------------------------- Alt Ctrl Shift S
  468. //
  469. //-----------------------------------------------------------
  470. <ApplyTemplate Conditional2 S 1 1 2 3 D>
  471.  
  472. //------------------------------------------------------ WoW2
  473. // Set WoW2 Main Window
  474. //------------------------------------------------------ WoW2
  475. // Alt Ctrl X
  476. // If MouseIsOverWindow WoW2 (caller: Alt Ctrl F5)
  477. //
  478. // ----------------------------------------- Alt Ctrl Shift A
  479. //
  480. //-----------------------------------------------------------
  481. <ApplyTemplate Conditional4 "A; Alt Ctrl F2" 1 2 S F>
  482.  
  483. //----------------------------------------------- Win4 - WoW3
  484. // Alt Ctrl X
  485. // If MouseIsOverWindow WoW3
  486. // If Win4 Is WoW3 (caller: Alt Ctrl Shift P)
  487. //
  488. // ----------------------------------------- Alt Ctrl Shift [
  489. //
  490. //-----------------------------------------------------------
  491. <ApplyTemplate Conditional1 Oem4 4 4 3 5>
  492.  
  493. //----------------------------------------------- Win4 - WoW3
  494. // Alt Ctrl X
  495. // If MouseIsOverWindow WoW3
  496. // If Win4 Is WoW3 (caller: Alt Ctrl Shift U)
  497. //
  498. // ----------------------------------------- Alt Ctrl Shift P
  499. //
  500. //-----------------------------------------------------------
  501. <ApplyTemplate Conditional2 P 1 4 3 2 Oem4>
  502.  
  503. //----------------------------------------------- Win3 - WoW3
  504. // Alt Ctrl X
  505. // If MouseIsOverWindow WoW3
  506. // If Win3 Is WoW3 (caller: Alt Ctrl Shift I)
  507. //
  508. // ----------------------------------------- Alt Ctrl Shift O
  509. //
  510. //-----------------------------------------------------------
  511. <ApplyTemplate Conditional1 O 4 3 3 5>
  512.  
  513. //----------------------------------------------- Win3 - WoW3
  514. // Alt Ctrl X
  515. // If MouseIsOverWindow WoW3
  516. // If Win3 Is WoW3 (Alt Ctrl Shift U)
  517. //
  518. // ----------------------------------------- Alt Ctrl Shift I
  519. //
  520. //-----------------------------------------------------------
  521. <ApplyTemplate Conditional2 I 1 3 3 2 O>
  522.  
  523. //------------------------------------------------------ WoW3
  524. // Alt Ctrl X
  525. // If MouseIsOverWindow WoW3 (caller: Alt Ctrl Shift R)
  526. //
  527. // ----------------------------------------- Alt Ctrl Shift U
  528. //
  529. //-----------------------------------------------------------
  530. <ApplyTemplate Conditional3 U 3 I P>
  531.  
  532. //----------------------------------------------- Win2 - WoW3
  533. // Alt Ctrl X
  534. // If MouseIsOverWindow WoW3
  535. // If Win2 Is WoW3 (caller: Alt Ctrl Shift T)
  536. //
  537. // ----------------------------------------- Alt Ctrl Shift Y
  538. //
  539. //-----------------------------------------------------------
  540. <ApplyTemplate Conditional1 Y 4 2 3 5>
  541.  
  542. //----------------------------------------------- Win2 - WoW3
  543. // Alt Ctrl X
  544. // If MouseIsOverWindow WoW3
  545. // If Win2 Is WoW3 (caller: Alt Ctrl Shift R)
  546. //
  547. // ----------------------------------------- Alt Ctrl Shift T
  548. //
  549. //-----------------------------------------------------------
  550. <ApplyTemplate Conditional2 T 1 2 3 2 Y>
  551.  
  552. //------------------------------------------------------ WoW3
  553. // Alt Ctrl X
  554. // If MouseIsOverWindow WoW3 (caller: Alt Ctrl Shift Q)
  555. //
  556. // ----------------------------------------- Alt Ctrl Shift R
  557. //
  558. //-----------------------------------------------------------
  559. <ApplyTemplate Conditional4 R 2 3 T U>
  560.  
  561. //----------------------------------------------- Win1 - WoW3
  562. // Alt Ctrl X
  563. // If MouseIsOverWindow WoW3
  564. // If Win1 Is WoW3 (caller: Alt Ctrl Shift W)
  565. //
  566. // ----------------------------------------- Alt Ctrl Shift E
  567. //
  568. //-----------------------------------------------------------
  569. <ApplyTemplate Conditional1 E 4 1 3 5>
  570.  
  571. //----------------------------------------------- Win1 - WoW3
  572. // Alt Ctrl X
  573. // If MouseIsOverWindow WoW3
  574. // If Win1 Is WoW3 (caller: Alt Ctrl Shift Q)
  575. //
  576. // ----------------------------------------- Alt Ctrl Shift W
  577. //
  578. //-----------------------------------------------------------
  579. <ApplyTemplate Conditional2 W 1 1 3 2 E>
  580.  
  581. //------------------------------------------------------ WoW3
  582. // Set WoW3 Main Window
  583. //------------------------------------------------------ WoW3
  584. // Alt Ctrl X
  585. // If MouseIsOverWindow WoW3 (caller: Alt Ctrl F5)
  586. //
  587. // ----------------------------------------- Alt Ctrl Shift Q
  588. //
  589. //-----------------------------------------------------------
  590. <ApplyTemplate Conditional4 "Q; Alt Ctrl F3" 1 3 W R>
  591.  
  592.  
  593. //----------------------------------------------- Win4 - WoW4
  594. // Alt Ctrl X
  595. // If MouseIsOverWindow WoW4
  596. // If Win4 Is WoW4 (caller: Alt Ctrl Shift -)
  597. //
  598. // ----------------------------------------- Alt Ctrl Shift +
  599. //
  600. //-----------------------------------------------------------
  601. <ApplyTemplate Conditional1 plus 3 4 4 5>
  602.  
  603. //----------------------------------------------- Win4 - WoW4
  604. // Alt Ctrl X
  605. // If MouseIsOverWindow WoW4
  606. // If Win4 Is WoW4 (caller: Alt Ctrl Shift 3)
  607. //
  608. // ----------------------------------------- Alt Ctrl Shift -
  609. //
  610. //-----------------------------------------------------------
  611. <ApplyTemplate Conditional2 minus 1 4 4 2 plus>
  612.  
  613. //----------------------------------------------- Win3 - WoW4
  614. // Alt Ctrl X
  615. // If MouseIsOverWindow WoW4
  616. // If Win3 Is WoW4 (caller: Alt Ctrl Shift 9)
  617. //
  618. // ----------------------------------------- Alt Ctrl Shift 0
  619. //
  620. //-----------------------------------------------------------
  621. <ApplyTemplate Conditional1 0 3 3 4 5>
  622.  
  623. //----------------------------------------------- Win3 - WoW4
  624. // Alt Ctrl X
  625. // If MouseIsOverWindow WoW4
  626. // If Win3 Is WoW4 (Alt Ctrl Shift 3)
  627. //
  628. // ----------------------------------------- Alt Ctrl Shift 9
  629. //
  630. //-----------------------------------------------------------
  631. <ApplyTemplate Conditional2 9 1 3 4 2 0>
  632.  
  633. //----------------------------------------------- Win2 - WoW4
  634. // Alt Ctrl X
  635. // If MouseIsOverWindow WoW4
  636. // If Win2 Is WoW5 (caller: Alt Ctrl Shift 2)
  637. //
  638. // ----------------------------------------- Alt Ctrl Shift 8
  639. //
  640. //-----------------------------------------------------------
  641. <ApplyTemplate Conditional1 8 3 2 4 5>
  642.  
  643. //----------------------------------------------- Win4 - WoW5
  644. // Alt Ctrl X
  645. // If MouseIsOverWindow WoW5
  646. // If Win4 Is WoW5 (caller: Alt Ctrl Shift 6)
  647. //
  648. // ----------------------------------------- Alt Ctrl Shift 7
  649. //
  650. //-----------------------------------------------------------
  651. <ApplyTemplate Conditional1 7 3 4 5 4>
  652.  
  653. //----------------------------------------------- Win4 - WoW5
  654. // Alt Ctrl X
  655. // If MouseIsOverWindow WoW5
  656. // If Win4 Is WoW5 (caller: Alt Ctrl Shift F4)
  657. //
  658. // ----------------------------------------- Alt Ctrl Shift 6
  659. //
  660. //-----------------------------------------------------------
  661. <ApplyTemplate Conditional2 6 1 4 5 2 7>
  662.  
  663. //----------------------------------------------- Win3 - WoW5
  664. // Alt Ctrl X
  665. // If MouseIsOverWindow WoW5
  666. // If Win3 Is WoW5 (caller: Alt Ctrl Shift 4)
  667. //
  668. // ----------------------------------------- Alt Ctrl Shift 5
  669. //
  670. //-----------------------------------------------------------
  671. <ApplyTemplate Conditional1 5 3 3 5 4>
  672.  
  673. //----------------------------------------------- Win3 - WoW5
  674. // Alt Ctrl X
  675. // If MouseIsOverWindow WoW5
  676. // If Win3 Is WoW5 (Alt Ctrl Shift F4)
  677. //
  678. // ----------------------------------------- Alt Ctrl Shift 4
  679. //
  680. //-----------------------------------------------------------
  681. <ApplyTemplate Conditional2 4 1 3 5 2 5>
  682.  
  683. //------------------------------------------------------ WoW4
  684. // Alt Ctrl X
  685. // If MouseIsOverWindow WoW4 (caller: Alt Ctrl Shift F12)
  686. //
  687. // ----------------------------------------- Alt Ctrl Shift 3
  688. //
  689. //-----------------------------------------------------------
  690. <ApplyTemplate Conditional3 3 4 9 minus>
  691.  
  692. //----------------------------------------------- Win2 - WoW4
  693. // Alt Ctrl X
  694. // If MouseIsOverWindow WoW4
  695. // If Win2 Is WoW4 (Alt Ctrl Shift F12)
  696. //
  697. // ----------------------------------------- Alt Ctrl Shift 2
  698. //
  699. //-----------------------------------------------------------
  700. <ApplyTemplate Conditional2 2 1 2 4 2 8>
  701.  
  702. //----------------------------------------------- Win1 - WoW4
  703. // Alt Ctrl X
  704. // If MouseIsOverWindow WoW4
  705. // If Win1 Is WoW4 (caller: Alt Ctrl Shift F11)
  706. //
  707. // ----------------------------------------- Alt Ctrl Shift 1
  708. //
  709. //-----------------------------------------------------------
  710. <ApplyTemplate Conditional1 1 3 1 4 5>
  711.  
  712. //------------------------------------------------------ WoW4
  713. // Alt Ctrl X
  714. // If MouseIsOverWindow WoW4 (caller: Alt Ctrl Shift F10)
  715. //
  716. // --------------------------------------- Alt Ctrl Shift F12
  717. //
  718. //-----------------------------------------------------------
  719. <ApplyTemplate Conditional4 F12 2 4 2 3>
  720.  
  721. //----------------------------------------------- Win1 - WoW4
  722. // Alt Ctrl X
  723. // If MouseIsOverWindow WoW4
  724. // If Win1 Is WoW4 (caller: Alt Ctrl Shift F10)
  725. //
  726. // --------------------------------------- Alt Ctrl Shift F11
  727. //
  728. //-----------------------------------------------------------
  729. <ApplyTemplate Conditional2 F11 1 1 4 2 1>
  730.  
  731. //------------------------------------------------------ WoW4
  732. // Set as the WoW4 Main Window
  733. //------------------------------------------------------ WoW4
  734. // Alt Ctrl X
  735. // If MouseIsOverWindow WoW4 (caller: Alt Ctrl X)
  736. //
  737. // --------------------------------------- Alt Ctrl Shift F10
  738. //
  739. //-----------------------------------------------------------
  740. <ApplyTemplate Conditional4 "F10; Alt Ctrl F4" 1 4 F11 F12>
  741.  
  742. //------------------------------------------------------ WoW5
  743. // Set WoW5 Main Window
  744. //------------------------------------------------------ WoW5
  745. // Alt Ctrl X
  746. // If MouseIsOverWindow WoW5 (caller: Alt Ctrl X)
  747. //
  748. // ---------------------------------------- Alt Ctrl Shift F9
  749. //
  750. //-----------------------------------------------------------
  751. <ApplyTemplate Conditional4 "F9; Alt Ctrl F5" 1 5 F1 F3>
  752.  
  753. //----------------------------------------------- Win2 - WoW5
  754. // Alt Ctrl X
  755. // If MouseIsOverWindow WoW5
  756. // If Win2 Is WoW5 (caller: Alt Ctrl Shift F7)
  757. //
  758. // ---------------------------------------- Alt Ctrl Shift F8
  759. //
  760. //-----------------------------------------------------------
  761. <ApplyTemplate Conditional1 F8 3 2 5 4>
  762.  
  763. //----------------------------------------------- Win2 - WoW5
  764. // Alt Ctrl X
  765. // If MouseIsOverWindow WoW5
  766. // If Win2 Is WoW5 (caller: Alt Ctrl Shift F3)
  767. //
  768. // ---------------------------------------- Alt Ctrl Shift F7
  769. //
  770. //-----------------------------------------------------------
  771. <ApplyTemplate Conditional2 F7 1 2 5 2 F8>
  772.  
  773. //-----------------------------------------------------------
  774. // Alt Ctrl X (caller: Alt Ctrl Shift F5)
  775. //
  776. // ---------------------------------------- Alt Ctrl Shift F6
  777. //
  778. //-----------------------------------------------------------
  779. <Hotkey Alt Ctrl Shift F6>
  780. <If MouseIsOverWindow WoW1>
  781. <DoHotkey Hotkey Alt Ctrl Shift Oem5>
  782. <EndIf>
  783.  
  784. //-----------------------------------------------------------
  785. // Alt Ctrl X (caller: Alt Ctrl X)
  786. //
  787. // ---------------------------------------- Alt Ctrl Shift F5
  788. //
  789. //-----------------------------------------------------------
  790. <Hotkey Alt Ctrl Shift F5>
  791. <If MouseIsOverWindow WoW3>
  792. <DoHotkey Hotkey Alt Ctrl Shift Q>
  793. <Else If MouseIsOverWindow WoW2>
  794. <DoHotkey Hotkey Alt Ctrl Shift A>
  795. <Else>
  796. <DoHotkey Hotkey Alt Ctrl Shift F6>
  797. <EndIf>
  798.  
  799. //------------------------------------------------------ WoW5
  800. // Alt Ctrl X
  801. // If MouseIsOverWindow WoW5 (caller: Alt Ctrl Shift F3)
  802. //
  803. // ---------------------------------------- Alt Ctrl Shift F4
  804. //
  805. //-----------------------------------------------------------
  806. <ApplyTemplate Conditional3 F4 5 4 6>
  807.  
  808. //------------------------------------------------------ WoW5
  809. // Alt Ctrl X
  810. // If MouseIsOverWindow WoW5 (caller: Alt Ctrl Shift F9)
  811. //
  812. // ---------------------------------------- Alt Ctrl Shift F3
  813. //
  814. //-----------------------------------------------------------
  815. <ApplyTemplate Conditional4 F3 2 5 F7 F4>
  816.  
  817. //----------------------------------------------- Win1 - WoW5
  818. // Alt Ctrl X
  819. // If MouseIsOverWindow WoW5
  820. // If Win1 Is WoW5 (caller: Alt Ctrl Shift F1)
  821. //
  822. // ---------------------------------------- Alt Ctrl Shift F2
  823. //
  824. //-----------------------------------------------------------
  825. <ApplyTemplate Conditional1 F2 3 1 5 4>
  826.  
  827. //----------------------------------------------- Win1 - WoW5
  828. // Alt Ctrl X
  829. // If MouseIsOverWindow WoW5
  830. // If Win1 Is WoW5 (caller: Alt Ctrl Shift F9)
  831. //
  832. // ---------------------------------------- Alt Ctrl Shift F1
  833. //
  834. //-----------------------------------------------------------
  835. <ApplyTemplate Conditional2 F1 1 1 5 2 F2>
  836.  
  837. //-----------------------------------------------------------
  838. // Active Window to Main window (Win5)
  839. //
  840. // ----------------------------------------------- Alt Ctrl X
  841. //
  842. //-----------------------------------------------------------
  843. <Hotkey Alt Ctrl X>
  844. <DisplayVars>
  845. <If MouseIsOverWindow WoW5>
  846. // make WoW5 the main window
  847. <DoHotkey Hotkey Alt Ctrl Shift F9>
  848. <Else If MouseIsOverWindow WoW4>
  849. // make WoW4 the main window
  850. <DoHotkey Hotkey Alt Ctrl Shift F10>
  851. <Else>
  852. //make WoW3, WoW2 or WoW1 the main window
  853. <DoHotkey Hotkey Alt Ctrl Shift F5>
  854. <EndIf>
  855.  
  856. //-----------------------------------------------------------
  857. // Labels for sending key strokes
  858. //-----------------------------------------------------------
  859. <Label w1 Local SendWinM WoW1>
  860. <Label w2 Local SendWinM WoW2>
  861. <Label w3 Local SendWinM WoW3>
  862. <Label w4 Local SendWinM WoW4>
  863. <Label w5 Local SendWinM WoW5>
  864.  
  865. //-----------------------------------------------------------
  866. // HotKey: Launch and rename all - Alt Ctrl L
  867. //-----------------------------------------------------------
  868. <Hotkey Alt Ctrl L>
  869. <SetTaskbarAutoHide On>
  870. <LaunchAndRename WoW1>
  871. <LaunchAndRename WoW2>
  872. <LaunchAndRename WoW3>
  873. <LaunchAndRename WoW4>
  874. <LaunchAndRename WoW5>
  875. <DefaultWindowLayout>
  876.  
  877. //-----------------------------------------------------------
  878. // Template: Launch and rename individual window HotKey
  879. //
  880. // %1% - Window number and Alt Ctrl number
  881. //-----------------------------------------------------------
  882. <Template Launch>
  883. <Hotkey Alt Ctrl %1%>
  884. <If WinDoesNotExist WoW%1%>
  885. <LaunchAndRename WoW%1%>
  886. <DefaultWindowLayout>
  887. <EndIf>
  888. <EndTemplate>
  889.  
  890. //-----------------------------------------------------------
  891. // HotKey: Launch and rename WoW 1 - Alt Ctrl 1
  892. //-----------------------------------------------------------
  893. <ApplyTemplate Launch 1>
  894.  
  895. //-----------------------------------------------------------
  896. // HotKey: Launch and rename WoW 2 - Alt Ctrl 2
  897. //-----------------------------------------------------------
  898. <ApplyTemplate Launch 2>
  899.  
  900. //-----------------------------------------------------------
  901. // HotKey: Launch and rename WoW 3 - Alt Ctrl 3
  902. //-----------------------------------------------------------
  903. <ApplyTemplate Launch 3>
  904.  
  905. //-----------------------------------------------------------
  906. // HotKey: Launch and rename WoW 4 - Alt Ctrl 4
  907. //-----------------------------------------------------------
  908. <ApplyTemplate Launch 4>
  909.  
  910. //-----------------------------------------------------------
  911. // HotKey: Launch and rename WoW 5 - Alt Ctrl 5
  912. //-----------------------------------------------------------
  913. <ApplyTemplate Launch 5>
  914.  
  915. //---------------------------------------------
  916. // Hotkey: Disable hot keys - Tab
  917. //----------------------------------------------
  918. <Hotkey Tab>
  919. <sendpc local>
  920. <If HotkeysAreOff>
  921. <TurnHotkeysOn>
  922. <SetButtonColors ON 0x00FF00 0x0F0F0F>
  923. <SetButtonText ON HKN>
  924. <Else>
  925. <TurnHotkeysOff>
  926. <SetButtonColors ON 0xfF0000 0xffFFff >
  927. <SetButtonText ON off>
  928. <EndIf>
  929.  
  930. //---------------------------------------------
  931. // Hotkey: Toggle active window tracking - Ctrl Alt A
  932. //----------------------------------------------
  933. <Hotkey Alt Ctrl A>
  934. <Toggle>
  935. <sendpc local>
  936. <SetButtonColors ACT 0x00FF00 0x0F0F0F>
  937. <SetButtonText ACT AWT>
  938. <SetActiveWindowTrackingDelay 0>
  939. <SetActiveWindowTracking On>
  940. <Toggle>
  941. <sendpc local>
  942. <SetButtonColors ACT 0xfF0000 0xffFFff >
  943. <SetButtonText ACT off>
  944. <SetActiveWindowTracking Off>
  945.  
  946. //-----------------------------------------------------------
  947. // Hotkey: Default Layout - Alt Ctrl D
  948. //-----------------------------------------------------------
  949. <Hotkey Alt Ctrl D>
  950. <DefaultWindowLayout>
  951.  
  952. //-----------------------------------------------------------
  953. // Hot keys for key combinations to be sent to WoW windows
  954. //-----------------------------------------------------------
  955. <KeyList TheKeyList 0-9, Plus, Minus>
  956.  
  957. // send the key list to all windows
  958. <Hotkey TheKeyList>
  959. <If ActiveWinIs WoW1>
  960. <SendLabel w2, w3, w4, w5>
  961. <Key ctrl %Trigger%>
  962. <SendLabel w1>
  963. <Key %Trigger%>
  964. <Else If ActiveWinIs WoW2>
  965. <SendLabel w1, w3, w4, w5>
  966. <Key alt %Trigger%>
  967. <SendLabel w2>
  968. <Key %Trigger%>
  969. <Else>
  970. <DoHotKey Hotkey NumLockOn Alt Ctrl Shift %Trigger%>
  971. <EndIf>
  972.  
  973. <Hotkey NumLockOn Alt Ctrl Shift TheKeyList>
  974. <If ActiveWinIs WoW3>
  975. <SendLabel w1, w2, w4, w5>
  976. <Key shift %TriggerMainKey%>
  977. <SendLabel w3>
  978. <Key %TriggerMainKey%>
  979. <Else If ActiveWinIs WoW4>
  980. <SendLabel w1, w2, w3, w5>
  981. <Key ctrl alt %TriggerMainKey%>
  982. <SendLabel w4>
  983. <Key %TriggerMainKey%>
  984. <Else>
  985. <SendLabel w1, w2, w3, w4>
  986. <Key ctrl shift %TriggerMainKey%>
  987. <SendLabel w5>
  988. <Key %TriggerMainKey%>
  989. <EndIf>
  990. //-----------------------------------------------------------
  991. // Hotkey: Oem8 Follow the active window
  992. //-----------------------------------------------------------
  993. <Hotkey Oem8>
  994. <If ActiveWinIs WoW1>
  995. <SendLabel w2, w3, w4, w5>
  996. <Key ctrl Oem6>
  997. <Else If ActiveWinIs WoW2>
  998. <SendLabel w1, w3, w4, w5>
  999. <Key alt Oem6>
  1000. <Else>
  1001. <DoHotKey Hotkey NumLockOn Alt Ctrl Shift Oem8>
  1002. <EndIf>
  1003.  
  1004. <Hotkey NumLockOn Alt Ctrl Shift Oem8>
  1005. <If ActiveWinIs WoW3>
  1006. <SendLabel w1, w2, w4, w5>
  1007. <Key shift Oem6>
  1008. <Else If ActiveWinIs WoW4>
  1009. <SendLabel w1, w2, w3, w5>
  1010. <Key ctrl alt Oem6>
  1011. <Else>
  1012. <SendLabel w1, w2, w3, w4>
  1013. <Key ctrl shift Oem6>
  1014. <EndIf>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement