-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScriptStart.ahk
47 lines (35 loc) · 1.11 KB
/
ScriptStart.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
#SingleInstance, force
Menu, Tray, Tip, ScriptStart
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Initialization ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Define INI file location
pathINI = % A_AppData "\Wooster Technical Solutions\WoosterTech.ini"
; Section of INI file
iniSection = ScriptStart
; Initialize iniProps
iniProps := {}
; Properties from INI file with their defaults
iniProps["fullList"] := "Master,Basic Shortcuts,Quick Status Change,Window Wizard,AppKill"
iniProps["startList"] := "Master,Basic Shortcuts,Quick Status Change,Window Wizard,AppKill"
iniProps["delay"] := 100
iniProps := WTSFunctions_readINI(pathINI, iniProps, iniSection)
startList := StrSplit(iniProps["startList"], ",")
delay := iniProps["delay"]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Main Code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SplashImage, images/qonlybig-edited.png, b CWC40233, %A_Space%
Sleep, 500
For index, program in startList
{
Start(program, , %delay%)
}
SplashImage, Off
Start(file, type := "exe", fDelay := 100)
{
fFile := % file "." type
If FileExist(fFile)
{
SplashImage, , , % "Starting: " file
Run, %fFile%
Sleep, %fDelay%
}
Sleep, 500
}