Jump to content

Reading inputted data


 Share

Recommended Posts

Hello, This is a great program and Forum.

I am looking for a way to detect the last digit of a 6 digit number when it is inputted into a field in a program I am using. This will be a trigger to start a subprogram. Any Ideas? Thanks.

Link to comment
Share on other sites

Here's a script that waits for you to type "quit" into the Start > Run box...

While 1
   sleep(100);prevent maxing out the CPU
   If ControlGetText("Run","","Edit1") = "quit" Then
      MsgBox(4096,"Done","You typed 'quit' into the Run dialog!")
      ExitLoop
   EndIf
WEnd

Try the AutoIt Window Spy to check if you can detect the text in the field. ControlGetText does not work with all types of controls :idiot:

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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...