chaitanya Posted July 31, 2009 Share Posted July 31, 2009 Hi All, I am storing variable values which is taken thru Inputbox in AutoIT. ex: $n=InputBox("Iteration", "How many iterations you want to run", "", " M2") I am not able to give input more than 99, If I give 3digits like 100 autoIT is not taking. any limitation on InputBox? Can anybody suggest me alternate of taking input from user? Thanks, Chaitanya Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 31, 2009 Share Posted July 31, 2009 M2 specifies no blank input, 2 chars max.Function InputBox - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Juvigy Posted August 3, 2009 Share Posted August 3, 2009 Also keep in mind that it is chars that are returned not numbers. Link to comment Share on other sites More sharing options...
Info Posted August 3, 2009 Share Posted August 3, 2009 Ehm... What's wrong with GUICtrlCreateInput()? #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 257, 123, 192, 124) $Input1 = GUICtrlCreateInput("", 40, 32, 121, 21) $Button1 = GUICtrlCreateButton("Button1", 40, 64, 75, 25, $WS_GROUP) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetData($Input1,GUICtrlRead($Input1)&"1234567890") EndSwitch WEnd Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now