MrTheDzam

Giải pháp tạm thời

Apr 15th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.29 KB | None | 0 0
  1. Opt('GuiOnEventMode', 1)
  2.  
  3. ...
  4. GuiSetOnEvent($GUI_EVENT_CLOSE, "FormMainClose")
  5. $Button1 = ....
  6. GuICtrlSetOnEvent(-1, "Button1")
  7. While 1
  8.     Sleep(69)
  9. WEnd
  10.  
  11. Func FormMainClose()
  12.     Exit
  13. EndFunc
  14.  
  15. Func Button1()
  16.     ...
  17. EndFunc
  18. ;=> Tạo hàm bắt sự kiện của GUI
  19. ;=> Thông chưa bác :v
Advertisement
Add Comment
Please, Sign In to add comment