View Single Post
Old 03-28-2019, 11:49 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,220
Hi Reno,
I've found that the coordinate positions can vary. I'm not sure why and was guessing it might have something to do with CRT screen size or how big the "send command" area is.
I don't think it has to do with SecureCRT. A column is a column is a column.

Is it the end of the line after the number? Or is there other output on the same line?

If that's the end of the line, you could probably do something like this:
crt.Screen.WaitForString "Connected Users: "
nUsers = crt.Screen.ReadString(vblf)
crt.Dialog.MessageBox nUsers
If there's other output on the same line, you would need to use VBScript's Left() function to just get the first four characters/digits of nUsers if that's the maximum possible digits (or use Split() if there's some "known separator" such as 4 spaces before next column of data).

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote