Guest User

Untitled

a guest
Jul 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. SetTitleMatchMode,3
  2. SetKeyDelay,0,0
  3. nlist:=Object()
  4. index:=1
  5. nlist[0]:=0
  6. H:=23
  7. M:=59
  8. S:=45
  9. `::
  10. {
  11. WinGetTitle,Name,A
  12. nlist[index]:=Name
  13. index:=index+1
  14. nlist[0]:=nlist[0]+1
  15. Return
  16. }
  17.  
  18. F1::
  19. {
  20. While,% (H-A_Hour)*3600+(M-A_Min)*60+(S-A_Sec)>0
  21. {
  22. TrayTip,,% 24*3600-(A_Hour*3600+A_Min*60+A_Sec)
  23. }
  24. TrayTip
  25. Loop
  26. {
  27. times:=24*3600-(A_Hour*3600+A_Min*60+A_Sec)
  28. Clipboard:="倒计时" times
  29. 发送()
  30. If % A_Hour=0
  31. {
  32. Break
  33. }
  34. While,% 24*3600-(A_Hour*3600+A_Min*60+A_Sec)=times
  35. {
  36. }
  37. }
  38. Clipboard:="大家新年快乐"
  39. 发送()
  40. Clipboard:="距离2012世界末日还有718天....."
  41. 发送()
  42. Return
  43. }
  44.  
  45. 发送()
  46. {
  47. Global nlist
  48. Loop,% nlist[0]
  49. {
  50. WinActivate,% nlist[A_Index]
  51. WinWaitActive,% nlist[A_Index]
  52. Send,{Ctrl Down}v{Ctrl Up}{Enter}
  53. }
  54. Return
  55. }
Add Comment
Please, Sign In to add comment