andy2415
2022-02-11 13:43:06 +08:00
睡醒了写的, 应该满足小巧简陋,无其他功能,不占内存
win + alt + r 调用
```ahk
#SingleInstance force
#!r::
{
Gui, New
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, Add, Text, x10 y10, 要干啥:
Gui, Add, Edit, x60 y7 w120 vwhat
Gui, Add, Text, x10 y42, 隔多久:
Gui, Add, Edit, x60 y39 w120 vwhen Number
Gui, Add, Button ,Default x10 y74 w80 gok, &OK
Gui, Add, Button , x100 y74 w80 gcancel, &CANCEL
Gui, Show
Return
GuiEscape:
Gui, Cancel
Return
}
ok(){
GuiControlGet, what
GuiControlGet, when
global msg = what
Gui, Cancel
t := when*1000*60
SetTimer, notify, %t%
Return
}
cancel(){
Gui, Cancel
}
notify:
Gui, New
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, Add, Text, x10 y12, %msg%
Gui, Add, Button ,Default x10 y44 w80 gcancel, &OK
Gui, Show
```
#!r::
{
Gui, New
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, Add, Text, x10 y10, 要干啥:
Gui, Add, Edit, x60 y7 w120 vwhat
Gui, Add, Text, x10 y42, 隔多久:
Gui, Add, Edit, x60 y39 w120 vwhen Number
Gui, Add, Button ,Default x10 y74 w80 gok, &OK
Gui, Add, Button , x100 y74 w80 gcancel, &CANCEL
Gui, Show
Return
GuiEscape:
Gui, Cancel
Return
}
ok(){
GuiControlGet, what
GuiControlGet, when
global msg = what
Gui, Cancel
t := when*1000*60
SetTimer, notify, %t%
Return
}
cancel(){
Gui, Cancel
}
notify:
Gui, New
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, Add, Text, x10 y12, %msg%
Gui, Add, Button ,Default x10 y44 w80 gcancel, &OK
Gui, Show
```