Exemple : quelque soit le texte que j'écris dans la Inputbox, la MsgBox me dit $Input1 = 0
Code : Tout sélectionner
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 284, 102, 255, 146)
Global $Input1 = GUICtrlCreateInput("", 40, 24, 185, 21)
Global $Button1 = GUICtrlCreateButton("ok", 80, 56, 89, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox(0,"","$Input1 = " & $Input1)
EndSwitch
WEnd



