forked from TaranVH/2nd-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.ahk
48 lines (45 loc) · 1.13 KB
/
Main.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
48
#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.
Menu Tray, Icon
Menu,Tray, Icon, shell32.dll, 44
Menu,Tray, NoStandard
Menu Tray, Add, Open Start Menu, OpenStartMenu
Menu Tray, Add, Open Launchy, OpenLaunchy
Menu Tray, Add, Open On Screen Keyboard, OpenOnScreenKeyboard
Menu Tray, Add, Open Window Spy, OpenWindowSpy
Menu Tray, Add, Edit This Script, EditScript
Menu Tray, Add, Reload This Script, ReloadScript
Menu Tray, Add, Exit, ExitApplication
Menu Tray, Default, Open Start Menu
LControl & RAlt::OpenLaunchy()
OpenStartMenu(){
Send ^{Esc}
}
OpenOnScreenKeyboard(){
Run, osk.exe
}
OpenWindowSpy(){
Run C:\Program Files\AutoHotkey\WindowSpy.ahk
}
EditScript(){
Edit
}
ReloadScript(){
Reload
}
ExitApplication(){
ExitApp
}
OpenLaunchy(){
IfWinActive, ahk_exe Launchy.exe
{
Send ^a
}
Else
{
Send !^{F15}
}
Return
}