Zamiel icon

Rebroadcasting Hotkeys

Zamiel | PRO | 10/14/16 04:01:30 AM UTC | 0 ⭐ | 384 👁️ | Never ⏰ | []
text |

3.45 KB

|

None

|

0 👍

/

0 👎

#q::
	; OPEN PROGRAMS IF THEY ARE NOT ALREADY OPEN
	IfWinNotExist, Racer 1 Items ahk_exe item_tracker.exe
	{
		Run, D:\Games\PC\Binding of Isaac Rebirth\RebirthItemTracker-1\Launch Item Tracker.lnk, D:\Games\PC\Binding of Isaac Rebirth\RebirthItemTracker-1\
	}
	IfWinNotExist, Racer 2 Items ahk_exe item_tracker.exe
	{
		Run, D:\Games\PC\Binding of Isaac Rebirth\RebirthItemTracker-2\Launch Item Tracker.lnk, D:\Games\PC\Binding of Isaac Rebirth\RebirthItemTracker-2\
	}
	IfWinNotExist, LiveSplit ahk_exe LiveSplit.exe
	{
		;Run, D:\Applications\Misc\LiveSplit_1.6.9\LiveSplit.exe, D:\Applications\Misc\LiveSplit_1.6.9
	}
	IfWinNotExist, MacSG ahk_exe MacSG.exe
	{
		Run, C:\Program Files (x86)\macsgsetup\MacSG.exe
	}
	IfWinNotExist, ahk_exe firefox.exe
	{
		Run, C:\Program Files (x86)\Mozilla Firefox\firefox.exe
	}
	IfWinNotExist, ahk_exe winamp.exe
	{
		Run, C:\Program Files (x86)\Winamp\winamp.exe
	}
	IfWinNotExist, ahk_exe obs64.exe
	{
		Run C:\Users\james\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OBS.lnk
	}
 	WinWait, MacSG ahk_exe MacSG.exe
	WinWait, Racer 1 Items ahk_exe item_tracker.exe
	WinWait, Racer 2 Items ahk_exe item_tracker.exe
	WinWait, LiveSplit ahk_exe LiveSplit.exe
	WinWait, ahk_exe firefox.exe
 	; MAXIMIZE WINDOWS IF NOT ALREADY MAXIMIZED, THEN MOVE + RESIZE THEM
	WinGet, WindowStatus, MinMax, First - VLC media player ahk_exe vlc.exe
	if (WindowStatus = -1) {
		WinRestore, First - VLC media player ahk_exe vlc.exe
	}
	WinMove, First - VLC media player ahk_exe vlc.exe, , 0, 0, 960, 563
	; Inside window size: 952 x 536 pixels
 	WinGet, WindowStatus, MinMax, Second - VLC media player ahk_exe vlc.exe
	if (WindowStatus = -1) {
		WinRestore, Second - VLC media player ahk_exe vlc.exe
	}
	WinMove, Second - VLC media player ahk_exe vlc.exe, , 960, 0, 960, 563
 	WinGet, WindowStatus, MinMax, Racer 1 Items ahk_exe item_tracker.exe
	if (WindowStatus = -1) {
		WinRestore, Racer 1 Items ahk_exe item_tracker.exe
	}
	WinMove, Racer 1 Items ahk_exe item_tracker.exe, , 74, 563, 813, 113
	;WinMove, Racer 1 Items ahk_exe item_tracker.exe, , 0, 563, 960, 128
	; Inside window size (of normal half-monitor size): 952 x 101 pixels
	; Size on overlay: 815 x 96 pixels
	; Size with 
	; 10 pixels of horizontal spacing (823 --> 813)
	; 10 pixels of vertical spacing (123 --> 113)
	; Middle = (960 - 813 / 2) = 73.5
 	WinGet, WindowStatus, MinMax, Racer 2 Items ahk_exe item_tracker.exe
	if (WindowStatus = -1) {
		WinRestore, Racer 2 Items ahk_exe item_tracker.exe
	}
	WinMove, Racer 2 Items ahk_exe item_tracker.exe, , 1034, 563, 813, 113
	;WinMove, Racer 2 Items ahk_exe item_tracker.exe, , 960, 563, 960, 128
 	WinGet, WindowStatus, MinMax, LiveSplit ahk_exe LiveSplit.exe
	if (WindowStatus = -1) {
		WinRestore, LiveSplit ahk_exe LiveSplit.exe
	}
	WinMove, LiveSplit ahk_exe LiveSplit.exe, , 1540, 721
 	WinGet, WindowStatus, MinMax, MacSG ahk_exe MacSG.exe
	if (WindowStatus = -1) {
		WinRestore, MacSG ahk_exe MacSG.exe
	}
	WinMove, MacSG ahk_exe MacSG.exe, , 1535, 783, 381, 206
 	WinGet, WindowStatus, MinMax, ahk_exe firefox.exe
	if (WindowStatus = -1) {
		WinRestore, ahk_exe firefox.exe
	}
	WinMove, ahk_exe firefox.exe, , 0, 550, 1535, 500
 	; ITEM TRACKERS ARE NOT ALREADY SET TO ALWAYS ON TOP MODE
	WinSet, AlwaysOnTop, on, Racer 1 Items
	WinSet, AlwaysOnTop, on, Racer 2 Items
 	; FINISHED
	;SoundPlay, C:\Windows\Media\Windows Logoff Sound.wav ; So that I know the hotkey was pressed
return

Comments