当前位置:网站首页>Realization of alarm clock with AHK
Realization of alarm clock with AHK
2022-06-24 11:26:00 【fqbqrr】
#SingleInstance force ; Prevent multiple runs
If A_Hour Between 22 and 24 ;22 Point to the 24 spot
{
Reminder ("222222"," sleep !") ; Set the alarm clock
}
Reminder ( timing , Reminder content )
{
StringLeft, The current date ,A_Now,8
;A_Now Format : year 4 position , month 2 position , Japan 2 position , when 2 position , branch 2 position , second 2 position , common 14 position . Take its left 8 position , The current date .
Reminder moment = % The current date %% timing % ; Add the date before the time above , And A_Now Uniform format
Reminder moment -= %A_Now%,Seconds ; Subtract the time to run this script from the set time , Unit second
Sleep Reminder moment *1000 ; Convert this time difference into milliseconds , be used for Sleep
MsgBox % Reminder content % ; Pop up a reminder window
Return
}
边栏推荐
- What code did the full stack programmer write this month?
- Tools and methods - use code formatting tools in source insight
- What is the function of the graphics card driver? Do you want to update the graphics card driver
- Which is a good CAD drawing software? How to select good software
- Nxshell session management supports import and export
- Can text pictures be converted to word? How to extract text from pictures
- 5W1H talk about open source - what is open source?
- 为什么虚拟机ping的通主机,主机ping不通虚拟机
- Maui的学习之路 -- 开篇
- Jetpack Compose 教程之 从一开始就投资于良好的导航框架将帮助您在之后节省大量的迁移工作
猜你喜欢

程序员大部分时间不是写代码,而是。。。

Act as you like

保险APP适老化服务评测分析2022第06期

《opencv学习笔记》-- 感兴趣区域(ROI)、图像混合

使用Process Monitor工具监测进程对注册表和文件的操作

Group counting_ Structure and workflow of CPU

图片的可视化呈现有效增强大屏吸引力

Libuv的安装及运行使用

Visual presentation of pictures effectively enhances the attraction of large screen

Use the process monitor tool to monitor process operations on registries and files
随机推荐
历史上的今天:图灵诞生日;互联网奠基人出生;Reddit 上线
把腾讯搬到云上,治愈了他们的技术焦虑
Does the depth system work?
Understanding of homogeneous coordinates
腾讯开源项目「应龙」成Apache顶级项目:前身长期服务微信支付,能hold住百万亿级数据流处理...
Maui's way of learning -- Opening
Multi gate mixture of experts and code implementation
≥ 2012r2 configure IIS FTP
PF_ Ring ZC | high speed traffic processing dpdk alternative
Why use a firewall? What is the function of firewall?
u盘安装kali并且持久化
Fais ce que tu veux.
[technical tutorial] national standard protocol platform easygbs cascading supports customized national standard channels
Moving Tencent to the cloud cured their technical anxiety
I want 18K. Can I pass it?
如何开发短信通知和语音功能医院信息系统(HIS系统)
PPT绘图相关,快捷键,美观度
《opencv学习笔记》-- 分离颜色通道、多通道混合
System design: key features of distributed systems
PHP SMS notification + voice broadcast automatic double call