msgbox


SUBMITTED BY: mrslimous

DATE: May 23, 2017, 3:39 p.m.

FORMAT: Text only

SIZE: 382 Bytes

HITS: 357

  1. #include <GUIConstantsEx.au3>
  2.  
  3. $hGui = GUICreate("Gui", 200, 200)
  4. $hInput = GUICtrlCreateInput("", 10, 10, 70, 20)
  5. GUISetState()
  6.  
  7. While 1
  8.     Switch GUIGetMsg()
  9.         Case $GUI_EVENT_CLOSE
  10.             Exit
  11.         Case $GUI_EVENT_PRIMARYUP
  12.             $aInfo = GUIGetCursorInfo()
  13.             If $aInfo[4] = $hInput Then MsgBox(0, "Test", "Test")
  14.     EndSwitch
  15. WEnd

comments powered by Disqus