-
Notifications
You must be signed in to change notification settings - Fork 3
/
org-mode-tray.ahk
49 lines (40 loc) · 980 Bytes
/
org-mode-tray.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
49
#Persistent
Menu, Tray, Click, 1
Menu, Tray, Icon , note.ico
Menu, tray, NoStandard
Menu, Tray, Add, Single Click, SingleClick
Menu, Tray, Add, Double Click, DoubleClick
Menu, Tray, Default, Double Click
Menu, Tray, Add, Exit
Return
DoubleClick:
MouseGetPos, , , WhichWindow, WhichControl
WinGetClass, WhichClass, ahk_id %WhichWindow%
If WhichClass = Shell_TrayWnd
{
IfInString, WhichControl, ToolbarWindow32
{
If Clicks =
{
SetTimer, SingleClick, 500
Clicks = 1
Return
}
}
}
SetTimer, SingleClick, Off
Sleep, 500
Clicks =
Return
SingleClick:
SetTimer, SingleClick, Off
Run, C:\Users\math0\Dropbox\emacs\new-note.bat
Clicks =
Return
!F1::Run, C:\Users\math0\Dropbox\emacs\new-note.bat
!F2::Run, C:\Users\math0\Dropbox\emacs\new-note-clip.bat
!F3::Send !{PrintScreen}
!F4::Run, C:\Users\math0\Dropbox\emacs\org-display-inbox.bat
!F5::Run, C:\Users\math0\Dropbox\emacs\org-display-org-dir.bat
Exit:
ExitApp