I am having a printing problem where the documents get skipped. the code reads:
Sess0.Screen.WaitForString "** DOCUMENT PRINT SELECT **", 1, 24
Sess0.Screen.WaitForString "ID Description", 3, 47
Do While Sess0.Screen.GetString(2, 40, 4) <> PRTR
Sess0.Screen.putstring PRTR, 2, 40
Loop
Do While Sess0.Screen.GetString(2, 14, 4) <> Docset
Sess0.Screen.putstring Docset, 2, 14
Loop
Do While Sess0.Screen.GetString(2, 27, 4) <> WDLT
Sess0.Screen.putstring WDLT, 2, 27
Loop
Do While Sess0.Screen.GetString(2, 53, 1) <> Two
Sess0.Screen.putstring Two, 2, 53
Loop
Sess0.Screen.SendKeys ("<Enter>")
Sess0.Screen.SendKeys ("<Enter>")
Do While Sess0.Screen.GetString(2, 27, 4) <> CSCR
Sess0.Screen.putstring CSCR, 2, 27
Loop
Do While Sess0.Screen.GetString(2, 53, 1) <> One
Sess0.Screen.putstring One, 2, 53
Loop
Sess0.Screen.SendKeys ("<Enter>")
Sess0.Screen.SendKeys ("<Enter>")
Sess0.Screen.WaitForString "** DOCUMENT PRINT SELECT **", 1, 24
But the last document - CSCR - gets skipped. Any ideas on how to solve this or the save as problem in my other post?
Sess0.Screen.WaitForString "** DOCUMENT PRINT SELECT **", 1, 24
Sess0.Screen.WaitForString "ID Description", 3, 47
Do While Sess0.Screen.GetString(2, 40, 4) <> PRTR
Sess0.Screen.putstring PRTR, 2, 40
Loop
Do While Sess0.Screen.GetString(2, 14, 4) <> Docset
Sess0.Screen.putstring Docset, 2, 14
Loop
Do While Sess0.Screen.GetString(2, 27, 4) <> WDLT
Sess0.Screen.putstring WDLT, 2, 27
Loop
Do While Sess0.Screen.GetString(2, 53, 1) <> Two
Sess0.Screen.putstring Two, 2, 53
Loop
Sess0.Screen.SendKeys ("<Enter>")
Sess0.Screen.SendKeys ("<Enter>")
Do While Sess0.Screen.GetString(2, 27, 4) <> CSCR
Sess0.Screen.putstring CSCR, 2, 27
Loop
Do While Sess0.Screen.GetString(2, 53, 1) <> One
Sess0.Screen.putstring One, 2, 53
Loop
Sess0.Screen.SendKeys ("<Enter>")
Sess0.Screen.SendKeys ("<Enter>")
Sess0.Screen.WaitForString "** DOCUMENT PRINT SELECT **", 1, 24
But the last document - CSCR - gets skipped. Any ideas on how to solve this or the save as problem in my other post?