Jump to content
Sign in to follow this  
chaitanya

Inputbox limitation

Recommended Posts

chaitanya

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
Juvigy

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

Share this post


Link to post
Share on other sites
Info

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.