RE: determining busy session
"Patrick Bielen" <[email protected]> Thu, 6 May 2004 12:31:03 +0200
| Newsgroups | gmane.comp.java.tn5250j.scripting |
|---|---|
| Message-ID | <[email protected]> |
Hi Tertius,
> how can I determine if the session is still busy (waiting for host
> response) before I issue the next command? I seem to run into timing
problems.
def waitWhileLocked(timeSeconds):
while screen.isKeyboardLocked():
time.sleep(timeSeconds)
Then use waitWhileLocked(1) between each command.
Best Regards,
Patrick
Sysop/Java-programmer Stafa Holland BV
Administrator/Programmer Memoranda-project (SourceForge)
Programmer TN5250J-project (SourceForge)
Programmer DBPirate-project (Java.net)
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3