Finding numbers and letters in a window

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Mayhem
Junior Coder
Posts: 25
Joined: Tue Apr 22, 2003 6:34 pm

Finding numbers and letters in a window

Post by Mayhem » Tue Dec 16, 2003 6:13 am

Is there a command(s) i can use to search a particular window for letters and numbers? (they are always different, so there is no way of telling what to look for)

Basically i want to search X=10, Y=10 all the way to X=100, Y=100 for numbers and then store them (somewhere).

Any help would be appreciated.

Ken

Lumumba

Post by Lumumba » Tue Dec 16, 2003 8:10 pm

How about this:

//Set the focus to the desktop/window
MouseMove>10,10
SetFocus>Program Manager
Press Shift
MouseMove>100,100
Release Shift

Press CTRL
Send>C
Release CTRL

GetClipboard>var
WriteLn>C:\test.txt,RESULT,%var%

//Problem: Clipboard won't save more then a single line!
//So open a file to paste the content of the clipboard to it

Run Program>notepad
WaitWindowOpen>Untiteld - Notepad
Press CTRL
Send>V
Release CTRL
.
.
.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts