-
Notifications
You must be signed in to change notification settings - Fork 0
/
launcher2.ahk
54 lines (46 loc) · 1.05 KB
/
launcher2.ahk
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Gui, font, s22
Gui, Show, x0 y0 w400 h340, Launcher
Gui, Add, Button, Default gLaunch, Launch REW
;Gui, Add, Button, Default gREW, Launch REQ Modules
Gui, Add, Button, Default grecord, Start Recording
return
Launch:
{
SetTitleMatchMode, 2
Run, "C:\Program Files\REW\roomeqwizard.exe"
isroomeqrunning := false
while(isroomeqrunning = false)
{
IfWinActive, REW
{
isroomeqrunning :=true
WinActivate, REW
Send ^+T
Send ^+M
Send ^+O
}
WinWait, REW, , 20
}
}
return
;REW:
;{
; SetTitleMatchMode, 2
; WinActivate, REW
; Send ^+T
; Send ^+M
; Send ^+O
;}
;return
record:
{
; WinActivate ahk_exe i)\\notepad\.exe$ ; Match the name part of the full path.
CoordMode, Mouse, Screen
click, 1865, 111
click, 1870, 571
}
return