Jump to content

GUICtrlRead returns 0


Recommended Posts

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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...