jackeroo75
Technical User
Const Dest$= "T"
Const Lstr$ = "L"
Dim i As Integer
i = 1
J11flr$ ="4N11,4E11,"
J10flr$ ="4N10,4S10,4E10,"
J09flr$ ="4N09,4S09,4E09,"
J8Yflr$ ="4N07,4E08U,4E08LB,4E08LC,4S08U,4S07LD," '7NORTH & 7S (Y floor)
J08flr$ ="4E08LA,4S07," 'Medical 8th floor
J7Wflr$ ="4E07" '"4W07,"
J04flr$ ="5N04,5W04,"
J03flr$ ="5W03,"
J02flr$ ="5W02,"
LocStr$=J11flr$ + J10flr$ + J09flr$ + J8Yflr$ + J08flr$ + J7Wflr$ + J04flr$ + J03flr$ + J02flr$
' Start JKJZ
MyScn.Sendkeys("<Reset><Clear>")
MyScn.WaitHostQuiet(g_HostSettleTime)
MyScn.Sendkeys("JKJZ<Enter>")
MyScn.WaitHostQuiet(g_HostSettleTime)
GetL$ = UCase(MyScn.GetString(3, 64, 1)) 'Get L
RetStr$ =GetField(LocStr$,i,",")
If GetL$ = "L" then
Do While RetStr$ <> ""
MyScn.PutString RetStr$, 7,64 "Out floor location
MyScn.PutString Dest$, 10, 64 'Print output
MyScn.Sendkeys("<Enter>")
MyScn.WaitHostQuiet(g_HostSettleTime)
MyScn.Sendkeys("<Reset><Clear>")
MyScn.WaitHostQuiet(g_HostSettleTime)
MyScn.Sendkeys("JKJZ<Enter>")
MyScn.WaitHostQuiet(g_HostSettleTime)
i = i + 1
RetStr$ =GetField(LocStr$,i,",")
Loop
GoTo AllDone:
End If
'-----------------------------------L Needed-
Do While RetStr$ <> ""
MyScn.PutString Lstr$, 3,64
MyScn.PutString RetStr$, 7,64
MyScn.PutString Dest$, 10, 64
MyScn.Sendkeys("<Enter>")
MyScn.WaitHostQuiet(g_HostSettleTime)
MyScn.Sendkeys("<Reset><Clear>")
MyScn.WaitHostQuiet(g_HostSettleTime)
MyScn.Sendkeys("JKJZ<Enter>")
MyScn.WaitHostQuiet(g_HostSettleTime)
i = i + 1
RetStr$ =GetField(LocStr$,i,",")
Loop
'GOTO Back to startpage
AllDone:
MyScn.Sendkeys("<Reset><Clear>")
MyScn.Sendkeys("XKMS<Enter>")
MyScn.WaitHostQuiet(g_HostSettleTime)
System.TimeoutValue = OldSystemTimeout
End Sub