Zamiel

Rebroadcasting Hotkeys

Oct 13th, 2016
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. #q::
  2. ; OPEN PROGRAMS IF THEY ARE NOT ALREADY OPEN
  3. IfWinNotExist, Racer 1 Items ahk_exe item_tracker.exe
  4. {
  5. Run, D:\Games\PC\Binding of Isaac Rebirth\RebirthItemTracker-1\Launch Item Tracker.lnk, D:\Games\PC\Binding of Isaac Rebirth\RebirthItemTracker-1\
  6. }
  7. IfWinNotExist, Racer 2 Items ahk_exe item_tracker.exe
  8. {
  9. Run, D:\Games\PC\Binding of Isaac Rebirth\RebirthItemTracker-2\Launch Item Tracker.lnk, D:\Games\PC\Binding of Isaac Rebirth\RebirthItemTracker-2\
  10. }
  11. IfWinNotExist, LiveSplit ahk_exe LiveSplit.exe
  12. {
  13. ;Run, D:\Applications\Misc\LiveSplit_1.6.9\LiveSplit.exe, D:\Applications\Misc\LiveSplit_1.6.9
  14. }
  15. IfWinNotExist, MacSG ahk_exe MacSG.exe
  16. {
  17. Run, C:\Program Files (x86)\macsgsetup\MacSG.exe
  18. }
  19. IfWinNotExist, ahk_exe firefox.exe
  20. {
  21. Run, C:\Program Files (x86)\Mozilla Firefox\firefox.exe
  22. }
  23. IfWinNotExist, ahk_exe winamp.exe
  24. {
  25. Run, C:\Program Files (x86)\Winamp\winamp.exe
  26. }
  27. IfWinNotExist, ahk_exe obs64.exe
  28. {
  29. Run C:\Users\james\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OBS.lnk
  30. }
  31.  
  32. WinWait, MacSG ahk_exe MacSG.exe
  33. WinWait, Racer 1 Items ahk_exe item_tracker.exe
  34. WinWait, Racer 2 Items ahk_exe item_tracker.exe
  35. WinWait, LiveSplit ahk_exe LiveSplit.exe
  36. WinWait, ahk_exe firefox.exe
  37.  
  38. ; MAXIMIZE WINDOWS IF NOT ALREADY MAXIMIZED, THEN MOVE + RESIZE THEM
  39. WinGet, WindowStatus, MinMax, First - VLC media player ahk_exe vlc.exe
  40. if (WindowStatus = -1) {
  41. WinRestore, First - VLC media player ahk_exe vlc.exe
  42. }
  43. WinMove, First - VLC media player ahk_exe vlc.exe, , 0, 0, 960, 563
  44. ; Inside window size: 952 x 536 pixels
  45.  
  46. WinGet, WindowStatus, MinMax, Second - VLC media player ahk_exe vlc.exe
  47. if (WindowStatus = -1) {
  48. WinRestore, Second - VLC media player ahk_exe vlc.exe
  49. }
  50. WinMove, Second - VLC media player ahk_exe vlc.exe, , 960, 0, 960, 563
  51.  
  52. WinGet, WindowStatus, MinMax, Racer 1 Items ahk_exe item_tracker.exe
  53. if (WindowStatus = -1) {
  54. WinRestore, Racer 1 Items ahk_exe item_tracker.exe
  55. }
  56. WinMove, Racer 1 Items ahk_exe item_tracker.exe, , 74, 563, 813, 113
  57. ;WinMove, Racer 1 Items ahk_exe item_tracker.exe, , 0, 563, 960, 128
  58. ; Inside window size (of normal half-monitor size): 952 x 101 pixels
  59. ; Size on overlay: 815 x 96 pixels
  60. ; Size with
  61. ; 10 pixels of horizontal spacing (823 --> 813)
  62. ; 10 pixels of vertical spacing (123 --> 113)
  63. ; Middle = (960 - 813 / 2) = 73.5
  64.  
  65. WinGet, WindowStatus, MinMax, Racer 2 Items ahk_exe item_tracker.exe
  66. if (WindowStatus = -1) {
  67. WinRestore, Racer 2 Items ahk_exe item_tracker.exe
  68. }
  69. WinMove, Racer 2 Items ahk_exe item_tracker.exe, , 1034, 563, 813, 113
  70. ;WinMove, Racer 2 Items ahk_exe item_tracker.exe, , 960, 563, 960, 128
  71.  
  72. WinGet, WindowStatus, MinMax, LiveSplit ahk_exe LiveSplit.exe
  73. if (WindowStatus = -1) {
  74. WinRestore, LiveSplit ahk_exe LiveSplit.exe
  75. }
  76. WinMove, LiveSplit ahk_exe LiveSplit.exe, , 1540, 721
  77.  
  78. WinGet, WindowStatus, MinMax, MacSG ahk_exe MacSG.exe
  79. if (WindowStatus = -1) {
  80. WinRestore, MacSG ahk_exe MacSG.exe
  81. }
  82. WinMove, MacSG ahk_exe MacSG.exe, , 1535, 783, 381, 206
  83.  
  84. WinGet, WindowStatus, MinMax, ahk_exe firefox.exe
  85. if (WindowStatus = -1) {
  86. WinRestore, ahk_exe firefox.exe
  87. }
  88. WinMove, ahk_exe firefox.exe, , 0, 550, 1535, 500
  89.  
  90. ; ITEM TRACKERS ARE NOT ALREADY SET TO ALWAYS ON TOP MODE
  91. WinSet, AlwaysOnTop, on, Racer 1 Items
  92. WinSet, AlwaysOnTop, on, Racer 2 Items
  93.  
  94. ; FINISHED
  95. ;SoundPlay, C:\Windows\Media\Windows Logoff Sound.wav ; So that I know the hotkey was pressed
  96. return
Advertisement
Add Comment
Please, Sign In to add comment