yucatan Posted May 25, 2008 Share Posted May 25, 2008 how do i make a inputbox where you can only enter 123456789 and not letters is that possebel ? Link to comment Share on other sites More sharing options...
monoceres Posted May 25, 2008 Share Posted May 25, 2008 how do i make a inputbox where you can only enter 123456789 and not letters is that possebel ?With just using the function InputBox() - NoBut you could create your own GUI wich looks like a inputbox and specify the $ES_NUMBER to the input control. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
yucatan Posted May 25, 2008 Author Share Posted May 25, 2008 With just using the function InputBox() - NoBut you could create your own GUI wich looks like a inputbox and specify the $ES_NUMBER to the input control.hmm how do you mean ? can u help me little bit on that ? Link to comment Share on other sites More sharing options...
Valuater Posted May 25, 2008 Share Posted May 25, 2008 #include <GUIConstantsEx.au3> #include <EditConstants.au3> $gui_win = GUICreate("My GUI", 300, 140) $Label = GUICtrlCreateLabel("Please Type in your Password", 10, 35, 280, 20) $Input = GUICtrlCreateInput("", 10, 65, 280, 20, BitOR($ES_PASSWORD, $ES_NUMBER)) $OK = GUICtrlCreateButton("&OK", 40, 100, 80, 20) $Cancel = GUICtrlCreateButton("&Cancel", 180, 100, 80, 20) GUISetState() $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $Cancel Exit Case $msg = $OK MsgBox(0x0, "OK", "Your Password is " & GUICtrlRead($Input)) EndSelect WEnd 8) Link to comment Share on other sites More sharing options...
yucatan Posted May 25, 2008 Author Share Posted May 25, 2008 #include <GUIConstantsEx.au3> #include <EditConstants.au3> $gui_win = GUICreate("My GUI", 300, 140) $Label = GUICtrlCreateLabel("Please Type in your Password", 10, 35, 280, 20) $Input = GUICtrlCreateInput("", 10, 65, 280, 20, BitOR($ES_PASSWORD, $ES_NUMBER)) $OK = GUICtrlCreateButton("&OK", 40, 100, 80, 20) $Cancel = GUICtrlCreateButton("&Cancel", 180, 100, 80, 20) GUISetState() $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $Cancel Exit Case $msg = $OK MsgBox(0x0, "OK", "Your Password is " & GUICtrlRead($Input)) EndSelect WEnd 8) how i can check if the input of a checkbox = 8 figures ? how i make in a inputbox that you only can typ figures and not letters? 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