Jump to content

Recommended Posts

Posted

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

Posted

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

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
×
×
  • Create New...