Sign in to follow this  
Followers 0
chaitanya

Inputbox limitation

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

Also keep in mind that it is chars that are returned not numbers.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0