Jump to content

inputbox


Recommended Posts

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!

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

#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

Link to comment
Share on other sites

#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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...