Sign in to follow this  
Followers 0
peethebee

Get Message on Input text change

6 posts in this topic

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



#2 ·  Posted (edited)

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

#3 ·  Posted (edited)

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

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  
Followers 0