Jump to content
Sign in to follow this  
Alexxander

Force user to input a number from a range in an input box

Recommended Posts

Alexxander

hi all here is a small piece of code

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

    GUICreate("My GUI UpDown", -1, -1, -1, -1, $WS_SIZEBOX)
    $input = GUICtrlCreateInput("2", 10, 10, 50, 20)
    GUICtrlCreateUpdown($input)
    GUISetState()

    While 1
        $msg = GUIGetMsg()
        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd

thing is can i locate a range that use can input or scroll to ?

so if i located the things from 1 to 20 so the use cant input or scroll more or less from that

is that possible ?

tnx in advanced


Share this post


Link to post
Share on other sites
FireFox

Hi,

Once again, read the helpfile, you will have the answer.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Realm

Hint... Hint...

How can you set for a 'Gui' 'Ctrl' to have a 'Set' 'Limit'


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

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  

×