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

Automate to Attachmate Extra

Status
Not open for further replies.

dprayner

Programmer
Oct 14, 2002
140
0
0
US
Hi people. Does anyone have a simple example of VBA code to automate to Attachmate Extra? I want to read the fields on a particular screen. Thaks DAVE
 
I'm no expert with attachmate but could you use Session.Screen.GetString(row, column, length).

 
This is some code that I used years ago, when we had Attachmate:
Code:
Sub open
    Set System = CreateObject("EXTRA.System")
    Set Session = System.ActiveSession
    Do Until Session.Screen.Getstring(20, 2, 7) = "Command" And Session.Screen.Getstring(23, 20, 4) = "    "
      Session.Screen.MoveTo 24, 80
      Session.Screen.SendKeys ("<Pf3>")
      Do Until Session.Screen.Row <> 24 Or Session.Screen.Col <> 80
        Session.Screen.WaitHostQuiet (50)
      Loop
    Loop
End Sub
You can use Attachmate's own help files for more functions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top