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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read screen data with WshShell

Status
Not open for further replies.

poem2004

Technical User
Feb 17, 2012
5
US
Gentlemen,
I have a small VBScript to automate certain tasks on an emulation screen. So, I have to move the cursor at one location, read the data and move on to the next, read that data (text or number) and copy that to Excel. I am able to move the cursor by WshShell.SendKeys method and copy data by WshShell.SendKeys "^C" method. Is there a way to set the cursor right at the spot I want and read the data there instead of moving my cursor around with WshShell.SendKeys "{RIGHT}/{LEFT}/..."?
I appreciate your help in advance!
I have attached my VBScript code.
 
 https://files.engineering.com/getfile.aspx?folder=96d5c032-8ba3-4eb6-9672-477a8deb9de7&file=vbs_copy_screen_data_to_excel.vbs
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top