Skip to content

Commit 1291f05

Browse files
BPTV-Launcher
setting the default button to 'Launch Apps Now' so you can launch the apps with just a press of the enter key...
1 parent 4e0fe01 commit 1291f05

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

BPTV-LAUNCHER.ahk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,13 @@ Gui, Add, Text, x85 yp+55 vtimeoutText, %timeoutText%
104104
Gui, Add, Text, x330 yp w25 vtimeoutTextProgress
105105
Gui, Font, S12 CDefault, Franklin Gothic Medium
106106
Gui, Add, Progress, x10 yp+20 w%guiElementWidth% h20 cGreen BackgroundNavy Range0-%timeoutSegments% vtimeoutProgress
107-
Gui, Add, Button, x10 yp+30 w%guiElementWidth% h30, Launch Apps &Now
107+
Gui, Add, Button, Default x10 yp+30 w%guiElementWidth% h30, Launch Apps &Now
108108
;guiHeight += 75
109109
;Gui, Add, Button, x10 yp+40 w430 h30, Variables
110110
Gui, Show, w%guiWidth% h%guiHeight%
111111

112+
113+
112114
;timer code section here
113115
;the timeout period is stored in settings.ini - under the [Settings] section as milliseconds - other values designated in above GUI code
114116

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
; AutoHotKey - 1-Shot - TBIRD
22
; by Ben Howard - [email protected]
33

4-
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
5-
; #Warn ; Enable warnings to assist with detecting common errors.
6-
SendMode Event ; Thunderbird does not see 'Input' flavor Sends...
7-
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
4+
#NoEnv
5+
SetWorkingDir %A_ScriptDir%
6+
CoordMode, Mouse, Window
7+
SendMode Input
8+
#SingleInstance Force
9+
SetTitleMatchMode 2
10+
#WinActivateForce
11+
SetControlDelay 1
12+
SetWinDelay 0
13+
SetKeyDelay -1
14+
SetMouseDelay -1
15+
SetBatchLines -1
16+
817

918
;===== INITIALIZATION - VARIABLES ==============================================================
1019

@@ -22,11 +31,11 @@ sleepDeep = 3500
2231
; <=use left mod key| >=use right mod key | UP=fires on release
2332

2433
;===== MAIN HOTKEY DEFINITIONS HERE ============================================================
25-
WinActivate, ahk_exe thunderbird.exe
26-
Sleep, sleepShort
27-
Send, {Control Down}
34+
WinActivate, ahk_class MozillaWindowClass
35+
Sleep, sleepLong
36+
Send, {RControl Down}
2837
Sleep, sleepShort
29-
Send, n
38+
Send, {n}
3039
Sleep, sleepShort
31-
Send, {Control Up}
32-
ExitApp
40+
Send, {RControl Up}
41+
ExitApp

0 commit comments

Comments
 (0)