Jump to content
Sign in to follow this  
yucatan

inputbox

Recommended Posts

yucatan

how do i make a inputbox where you can only enter 123456789 and not letters is that possebel ?

Share this post


Link to post
Share on other sites
monoceres

how do i make a inputbox where you can only enter 123456789 and not letters is that possebel ?

With just using the function InputBox() - No

But 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!

Share this post


Link to post
Share on other sites
yucatan

With just using the function InputBox() - No

But 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 ?

Share this post


Link to post
Share on other sites
Valuater

#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)


NEWHeader1.png

Share this post


Link to post
Share on other sites
yucatan

#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?

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  

×