Translate page

WaitForKbUnlocked (Method)

Determine if the application is in a 'wait' state.  If the session is in a 'wait' state (keyboard locked, X-System or X-Clock state), the function will wait up to 60 seconds for the session to become available before returning.

Function WaitForKbUnlocked As Long

No parameters

Return Code

Description

JGS_OK

Keyboard is unlocked and ready for input

JGS_NOTCONNECTED

Your application is not connected to a session

JGS_PSBUSY

Function timed out while still in X-System or X-Clock mode

JGS_INHIBITED

Keyboard is locked

JGS_SYSERROR

The function failed due to a system error

Sample Code

Dim result as Long
result = sess.WaitForKbUnlocked
If result = JGS_OK then
   ...  ' continue processing
Else
   ....
End If

QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.