PDA

View Full Version : Send "Enter" to mainframe



Arasi
06-30-2009, 12:20 AM
Hi,

I am trying to access mainframe form an Excel using ObjectX Mainframe Display Control. I am able to send data to the mainframe screen using sendkeys. But when I try to send the enter control its again taking it as an text and writing on the screen.

The code is am using is,

ObjectXMFDisplay1.SendKeys "TSOI"
ObjectXMFDisplay1.SetFocus
ObjectXMFDisplay1.SendKeys ("{Enter}")

The same code worked well in Access VBA.
How should I give the command Enter??
Please help.

Thanks.

Praveenkumar
06-30-2009, 04:28 AM
To activate application
appactivate("Application Name")

then enter key
application.sendkeys ("{Enter}")

Arasi
06-30-2009, 04:34 AM
I tried this too.. Not working :(