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!

How to use WaitForKeys Method

Status
Not open for further replies.

manuelogando

IS-IT--Management
Apr 5, 2002
3
ES
Does anybody knows how does the Waitforkeys method works?
I'm developing an application in VB that interacts with an Extra 3270 emulation.
I needed to wait any key in the Extra 3270 emulation to be pressed. But when the key is pressed I need to know which was the key that the user pressed.

If think the right way to do it is writting the sentence:

keypressed=Screen.WaitForKeys(-1,"")

When I execute this sentence the result is that it detects when any key is pressed but the variable "keypressed" is empty.

Does anybody know if there's any way to make what I need?
Thanks.
 
The WaitForKeys method is a little strange.

rc = Sess0.screen.WaitForKeys(" ")

This is wait for next for the next spacebar press, but it will also pass the space to the screen.

Also, the WaitForKeys only triggers when the exact string has been entered.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top