Jump to content
Sign in to follow this  
3mustgetbeers

GUICtrlRead returns 0

Recommended Posts

3mustgetbeers

Hi all,

I am trying to get to grips with this function, so as a test I am trying to read a field of an outlook contact. So, I have this:

WinActivate("Test - Contact")
Sleep(50)
$x = GUICtrlRead("[CLASS:RichEdit20WPT; INSTANCE:4]")
sleep(50)
ShellExecute("notepad.exe")
WinWaitActive("Untitled - Notepad")
Sleep(50)
Send($x)

I expected it to send the "Full Name" field from Outlook into Notepad. But all I get is a 0?

Any pointers on this probably really basic error :graduated:

Thanks!

Share this post


Link to post
Share on other sites
3mustgetbeers

Cheer JohnOne,

I assumed that the ControlID was that the "Advanced (Class):" from the Window Info program. Works a treat now, thanks :graduated:

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  

×