Sign in to follow this  
Followers 0
cyanidemonkey

read window text issue

3 posts in this topic

#1 ·  Posted (edited)

i'm running a script that runs on our server, i need to check for some text from a window, when i use WinGetText ( "title" [, "text"] ) it returns the window text only upto the first '&' (used as an underline on a button in the interface). It only dose this on the server which is not logged in, so i'm assuming hidden windows.

i'm looking for a string after the button text, any ideas why it is doing this?

i tried ControlGetText ( "title", "text", controlID ) but it returned a blank string.

Edited by cyanidemonkey

My AutoIt Scripts.- AutoHost and Password Enabler for Delta Force 2 Demo.| Caffine for Winamp 2.9x and WRS 2.0 | mp3 directory cleaner | CRAP DJ | A:B:J Radio Automation Software | FFMPEG batch conversion automator

Share this post


Link to post
Share on other sites



Are you sure you are using the parameters correctly? Without actual code we can't really help. Taking text from the helpfile to me says you either don't want to share code (which is needed in this case) or you took that directly from the helpfile and expected it to work.

Share this post


Link to post
Share on other sites

i'm running a script that runs on our server, i need to check for some text from a window, when i use WinGetText ( "title" [, "text"] ) it returns the window text only upto the first '&' (used as an underline on a button in the interface). It only dose this on the server which is not logged in, so i'm assuming hidden windows.

i'm looking for a string after the button text, any ideas why it is doing this?

i tried ControlGetText ( "title", "text", controlID ) but it returned a blank string.

What does it mean to run this on a server that is not logged in? Are you running this from a scheduled task, by PSEXEC, or while the console is locked, or what?

:mellow:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0