mtettmar wrote:Hi,
That's easy:
Press ALT
Send> es
Release ALT
Wait>0.5
Press ALT
Send> ey
Release ALT
ALT-space then e then s selects all the text.
ALT-space then e then y copies it to the clipboard.
Then use GetClipBoard to retrieve the text from the clipboard to a variable and manipulate.
This could work for a project I'm working on, a password reset project. Our application runs via telnet. The user (help desk) will run the compiled macro, which will ask them for the user's access code. It will then lock the keyboard/mouse and run the code to open telnet, login, and open the security function to disply the info for the user they selected. I want to capture that info, close the telnet session, display the user info in a message box asking the user if this is the correct info, unlock the keyboard/mouse and, if they click ok, lock the keyboard and open the session again to reset the password to the default, close the session and unlock the keyboard. If they click no, then it asks them to re-enter the user code (unlocking the keyboard, of course).
My issue has been how to capture the text of the telnet scren (essentially a cmd window) with the keyboard locked and then disply that captureed info to the user. The latter part is what I've been unsure of using the getwindowtext fnction.
This method might work, but will it work witht he keyboard locked?