Jump to content
Sign in to follow this  
peethebee

Get Message on Input text change

Recommended Posts

peethebee

Hi!

A short question. I atm try to code a function which limits the text in a Input to a string fullfilling a RegExp.

The functions to parse will hopefully work. But I did not find a way to get the message win sends when the user changes the text of this Input. I work in OnEventMode.

Any sample and help would be highly appreciated.

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites
Valuater

i dont under stand your question completely... ie, how you are defining the length of the input

however.. this may help

GUICtrlSetLimit Limits the number of characters/pixels for a control.

GUICtrlSetLimit ( controlID, max [, min] )

Parameters

controlID The control identifier (controlID) as returned by a a href="."/guiref/GUICtrlCreate.htm">GUICtrlCreate... function. max For List controls it is the extent you can scroll horizontally in pixels.

For Input/Edit controls it is the max number of characters that can be entered.

8) Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
peethebee

A improved version of RestrictControlRegExp.aue3-UDF can be found here:

http://www.autoitscript.com/forum/index.php?showtopic=31641

peethebee

Edited by peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites
peethebee

Already found that. Thanks for the hint.

To see my result, follow the link I posted.

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.