Last active
October 24, 2021 01:06
-
-
Save mark05e/b0c4886abfd2f40f6493717a5ae1f1dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
Revision := 3 | |
ShowHelpScreen() | |
; | |
; App content here | |
; | |
^!x:: | |
ExitApp | |
^!r:: | |
Reload | |
ShowHelpScreen(){ | |
global | |
HelpText := " | |
( | |
[ APP NAME HERE ] | |
CTRL + ALT + U -- Perform Type | |
CTRL + ALT + R -- Restart Script | |
CTRL + ALT + X -- Exit Script | |
)" | |
WinGetPos,,,,TrayHeight,ahk_class Shell_TrayWnd,,, | |
height := A_ScreenHeight-230-TrayHeight | |
CustomColor := "000000" ; Can be any RGB color (it will be made transparent below). | |
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item. | |
Gui, Color, %CustomColor% ; Background Color | |
Gui, Font, s20, Consolas ; Set a large font size (20-point). | |
Gui, Add, Text, cLime, %HelpText% ; to auto-size the window with text | |
Gui, Font, s15, Consolas ; Set a large font size (20-point). | |
Gui, Add, Text, cLime, Revision: %Revision% ; to auto-size the window with text | |
WinSet, Transparent, 200 | |
Gui, Show, x0 y%height% NoActivate ; NoActivate avoids deactivating the currently active window. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment