Jump to content

Get Message on Input text change


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
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

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...