Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.52 KB | None | 0 0
  1. #include <WindowsConstants.au3>
  2. #include <GUIConstantsEx.au3>
  3.  
  4.  
  5. Dim $aItems[4] = ["", "Hi", "Wie gehts?", "Tschüss"]
  6.  
  7. GUICreate("", -1, -1, -1, -1, $WS_SIZEBOX)
  8.  
  9. $input = GUICtrlCreateInput("0", 10, 10, 50, 20)
  10. $updown = GUICtrlCreateUpdown($input)
  11. GUICtrlSetLimit($updown, 3, 1)
  12. GUICtrlSetPos($input, 10, 10, 100, 40)
  13. GUISetState()
  14.  
  15. While 1
  16.     $msg = GUIGetMsg()
  17.     If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  18.  
  19.     $wert = GUICtrlRead($input)
  20.  
  21.     If $wert > 0 Then
  22.         GUICtrlSetData($input, $aItems[$wert])
  23.     EndIf
  24. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement