Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetTitleMatchMode,3
- SetKeyDelay,0,0
- nlist:=Object()
- index:=1
- nlist[0]:=0
- H:=23
- M:=59
- S:=45
- `::
- {
- WinGetTitle,Name,A
- nlist[index]:=Name
- index:=index+1
- nlist[0]:=nlist[0]+1
- Return
- }
- F1::
- {
- While,% (H-A_Hour)*3600+(M-A_Min)*60+(S-A_Sec)>0
- {
- TrayTip,,% 24*3600-(A_Hour*3600+A_Min*60+A_Sec)
- }
- TrayTip
- Loop
- {
- times:=24*3600-(A_Hour*3600+A_Min*60+A_Sec)
- Clipboard:="倒计时" times
- 发送()
- If % A_Hour=0
- {
- Break
- }
- While,% 24*3600-(A_Hour*3600+A_Min*60+A_Sec)=times
- {
- }
- }
- Clipboard:="大家新年快乐"
- 发送()
- Clipboard:="距离2012世界末日还有718天....."
- 发送()
- Return
- }
- 发送()
- {
- Global nlist
- Loop,% nlist[0]
- {
- WinActivate,% nlist[A_Index]
- WinWaitActive,% nlist[A_Index]
- Send,{Ctrl Down}v{Ctrl Up}{Enter}
- }
- Return
- }
Add Comment
Please, Sign In to add comment