Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 03-28-2019, 12:29 PM
Reno Reno is offline
Registered User
Join Date: Mar 2019
Posts: 34
Searching screen for Y position of a string?

I have a VBscript section where some text is being found on the screen and copied:

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.

If I'm looking for a line in a command output like "Total Connected Users: ", how could I get the (x,y,x,y) position values of that string to get the numbers after the colon+space?

For example, if the line looks like "Total Connected Users: 15", how would you search for the "Total Connected Users: " string to grab the (say) 4 characters after that string?

Thank you
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 12:48 PM.