Advertisement
lyogadi

Untitled

Jun 19th, 2018
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.48 KB | None | 0 0
  1. #Include "CoProc.au3"
  2.  
  3. HotKeySet("{F1}", "_Proc")
  4. HotKeySet("{F2}", "_Exit")
  5.  
  6. While 1
  7.     Sleep(10)
  8. WEnd
  9.  
  10. Func _Proc()
  11.     _CoProc('Main("AutoIt Help (v3.3.14.5)")')
  12. EndFunc
  13.  
  14. Func _Exit()
  15.     Exit
  16. EndFunc
  17.  
  18. Func Main($WinTitle)
  19.     Local $Time = TimerInit()
  20.     While 1
  21.         If WinExists($WinTitle) Then
  22.             MsgBox(0, "", "Cửa sổ đã xuất hiện")
  23.             Return
  24.         EndIf
  25.         If TimerDiff($Time) >= 5000 Then
  26.             MsgBox(0, "", "Đã quá thời gian chờ")
  27.             Return
  28.         EndIf
  29.     WEnd
  30. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement