You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BPTV-LAUNCHER.ahk
+24-12Lines changed: 24 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,16 @@ inifile = settings.ini
40
40
INI_Init(inifile)
41
41
INI_Load(inifile)
42
42
43
+
; this little section detects if the MASTER-SCRIPT.ahk is already running. That would be a sign that this launcher may have already been run. Since we don't usually want to run this launcher a second time (while the apps it launches are already running) we will set the timeout period to something very high so you have time to interact with the GUI and not have it quickly launch everything over again.
Tooltip, MASTER-SCRIPT.ahk IS ALREADY RUNNING.`nThe timeout is set to %timeoutSegments% seconds temporarily.`nQuit allchecked apps `& scripts to reset timeout period.
50
+
RemoveTooltip(4000)
51
+
}
52
+
43
53
;Creating the Main GUI for the app - the bit that loads inititally when run
;the timeout period is stored in settings.ini - under the [Settings] section as milliseconds - other values designated in above GUI code
117
127
launcherTimeoutSleep := 1000
128
+
118
129
;this code creates and updates the timer text & progress bar
119
130
loop, %timeoutSegments%
120
131
{
@@ -126,6 +137,7 @@ loop, %timeoutSegments%
126
137
goto launchApps
127
138
return
128
139
140
+
129
141
launchApps:
130
142
loop, %section3_keys%
131
143
{
@@ -191,6 +203,7 @@ ExitApp
191
203
return
192
204
193
205
ButtonAddApp:
206
+
launcherTimeoutSleep := 10000
194
207
InputBox, newAppNameValue, Name or Description, Enter a Name or Description for the new app.
195
208
InputBox, newAppPathValue, File Path, Enter the full path to the new app.`n(include path relative to %A_ScriptName%`nwhich is located in %A_ScriptDir%)
196
209
if (!newAppPathValue) {
@@ -291,17 +304,16 @@ if (A_GuiEvent = "DoubleClick")
291
304
return
292
305
293
306
ButtonChangeTimeout:
294
-
InputBox, OutputVar, Change Timeout Delay, Set the amount of time to wait before launching checked apps.`n`n(Entertime in milliseconds. 6seconds would be 6000ms, etc.))
307
+
InputBox, OutputVar, Change Timeout Delay, Set the amount of time to wait before launching checked apps.`n`n(Entertime in milliseconds. 6seconds would be 6000ms, etc.)),,,,,,,%Settings_timeoutPeriod%
295
308
if OutputVar= ;IF NONE IS SELECTED , RETURN
296
309
return
297
310
Settings_timeoutPeriod := OutputVar
298
311
INI_Save(inifile)
299
312
reload
300
313
return
301
314
302
-
ButtonEditsettings.ini:
303
-
MsgBox, 262449, WARNING, You are opening the 'settings.ini' file in a text editor!`n`nThis file controls all aspects of how this set of scripts operates.`n`nPlease be very careful in here.`n`nIf you are going in to remove Apps or Scripts`, be sure to update the numbers after any items you delete (loadscript1, enableApp3, etc). Stuff will break if you don't.`n`nCANCEL to turn back...`n`nAfter exiting the text editor, this script will reload with your changes.
304
-
RunWait, notepad.exe settings.ini, %A_ScriptDir%, Max
305
-
Reload
315
+
ButtonLaunchMaster-Settings:
316
+
Run, %A_ScriptDir%\MASTER-SETTINGS.AHK ; runs the settings configuration script for the whole suite.
0 commit comments