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!

SendKeys Problem

Status
Not open for further replies.

adamone

Technical User
Sep 3, 2003
2
AU

I am trying to automate data entry to our Mainframe. I can access the Mainframe via Extra! Personal Client version 6.4.
I am using Excel VBA to access Extra! - I am hoping to update a couple of hundred products using this method.

The following code partly works? Only a couple of lines are displayed on the screen, with the rest being blank!

'***
Set objxtraSys = CreateObject("EXTRA.System")

'Assumes an open session
Set objxtraSess = objxtraSys.ActiveSession
Set objxtraScreen = objxtraSess.Screen

'Go to required screen
objxtraScreen.SendKeys (&quot;<Home>MSES<Pf24><Home>&quot;)

'Fields to be entered
strGates = &quot;<Home><Tab><Tab><Tab><Tab><Tab>&quot;
strGates = strGates & &quot;NAAWHLOMB&quot;
strGates = strGates & &quot;<Down><BackTab><BackTab><BackTab>&quot;
strGates = strGates & &quot;NBBMMLOMB&quot;
strGates = strGates & &quot;<Down><BackTab><BackTab><BackTab>&quot;
strGates = strGates & &quot;NIEXPLOMB&quot;
strGates = strGates & &quot;<Down><BackTab><BackTab><BackTab>&quot;
strGates = strGates & &quot;NKKMMLOMB&quot;
strGates = strGates & &quot;<Down><BackTab><BackTab><BackTab>&quot;
strGates = strGates & &quot;NNNCLLOMB&quot;
strGates = strGates & &quot;<Down><BackTab><BackTab><BackTab>&quot;
strGates = strGates & &quot;NRSBCLOMB<Home>&quot;

'Send to Extra!
objxtraScreen.SendKeys (strGates)

'***
 
Have you considered using the sendString method as opposed to sending all those keystrokes?

Also, check the help files for 6.4. It was not an object oriented language. This may be causing you some problem as well.

From some old code:
rc% = SendString(23,15,&quot;PCICS34&quot;)
SendHostKeys(&quot;@E&quot;)

calculus
 
SendString is not supported in EXTRA!Personal Client 6.4. However, PutString is supported and works fine - thanks for the tip!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top