I have a problem however with "permanently" storing the links in such a way that even after shutdown/restart, I want the numpad keys to continue working to open the saved links. How do I go about that?
Code: Select all
#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, Add, Text, x20 y36 w115 h19 , NumPad 1 -------------------
Gui, Add, Text, x20 y64 w115 h19 , NumPad 2 -------------------
Gui, Add, Text, x20 y93 w115 h19 , NumPad 3 -------------------
Gui, Add, Text, x20 y122 w115 h19 , NumPad 4 -------------------
Gui, Add, Text, x20 y151 w115 h19 , NumPad 5 -------------------
Gui, Add, Text, x20 y180 w115 h19 , NumPad 6 -------------------
Gui, Add, Text, x20 y208 w115 h19 , NumPad 7 -------------------
Gui, Add, Text, x20 y237 w115 h19 , NumPad 8 -------------------
Gui, Add, Text, x20 y266 w115 h19 , NumPad 9 -------------------
Gui, Add, Edit, x175 y36 w290 h19 vNum1
Gui, Add, Edit, x175 y64 w290 h19 vNum2
Gui, Add, Edit, x175 y93 w290 h19 vNum3
Gui, Add, Edit, x175 y122 w290 h19 vNum4
Gui, Add, Edit, x175 y151 w290 h19 vNum5
Gui, Add, Edit, x175 y180 w290 h19 vNum6
Gui, Add, Edit, x175 y208 w290 h19 vNum7
Gui, Add, Edit, x175 y237 w290 h19 vNum8
Gui, Add, Edit, x175 y266 w290 h19 vNum9
Gui, Add, Text, x20 y7 w76 h19 , KEYS
Gui, Add, Text, x204 y7 w259 h19 , LINKS
Gui, Add, Button, x260 y300 w124 h38 gGuiClose, CANCEL
Gui, Add, Button, x109 y300 w124 h38 gGuiSubmit, OK
; Generated using SmartGUI Creator for SciTE
Gui, Show, w479 h377, LINK SHORTCUTS
return
Guisubmit:
Gui, submit, nohide
Msgbox, %Num1%, %Num2%, %Num3%, %Num4%, %Num5%, %Num6%, %Num7%, %Num8%, %Num9%
GuiClose:
;Msgbox, %Num1%, %Num2%, %Num3%, %Num4%
ExitApp