Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I capture information on the screen?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am using procomm for windows to telnet into sites at my company and change things. I would REALLY like to automate this and have a very very basic knoledge of Aspect. I have worked just about everying out except how to capture information on the screen. Here is a screenshot of the problem I am having.
I need to be able to capture the XX in the Tax Code so I can write an appropriate if statment that changes the XX to cus or just completely ignores it if it is anything other than XX.
Anyone have any ideas?
 
Ok.. I figured it out.. but now i don't know how to compare string variables... Here is the code I figured out

termgets 9 31 taxcode 2

This captures the Tax Code, but now I need to be able to find out if taxcode = "XX" and I don't know how to do that..
 
Alright.. I figured that one out too.
Here is what it would look like.

string taxcode
string taxtest = "XX"
proc main
termgets 9 31 taxcode 2 ;gets row 9 column 21 for 2 chars
if rstrcmp taxcode taxtest 2 ; test see if the first 2 character of taxcode match the first 2 caracters of taxtext
transmit "whatever you want"
endif
endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top