3mustgetbeers Posted October 16, 2011 Posted October 16, 2011 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 Thanks!
JohnOne Posted October 16, 2011 Posted October 16, 2011 Yes, its a basic error. Read the helpfile "The control identifier (controlID) as returned by a GUICtrlCreate... function." Try ControlGetText() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
3mustgetbeers Posted October 16, 2011 Author Posted October 16, 2011 Cheer JohnOne, I assumed that the ControlID was that the "Advanced (Class):" from the Window Info program. Works a treat now, thanks
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now