RE: Need Help With Windowing & INI Files
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 20, 2001
- 392 views
> From: Mike <vulcan at win.co.nz> > To: EUforum <EUforum at topica.com> > Reply-To: EUforum at topica.com > Subject: RE: Need Help With Windowing & > INI Files > Date: 21/08/2001 12:58:39 PM [snip] > > > 2. AutoIt was designed to help with the > automation of windows > > based installation programs > (installshield, etc). To this end, > > you can identify if a window exists > or is the active window by > > matching on not only the window > title, but text that is inside of > > the window as well. EU with the > windows.ew library (in the archvie > > agian) can do most of this except > differentiate between 2 windows > > that have the same title but > different text inside the window. > > > > Can someone tell me how to do this > with EU? > > > Aah, I think Derek is the guy who can > answer this one.. I was hoping someone else would jump in. Anyhow, if you have the SDK manual you will be able to do this with a combination of EnumWindows and EnumChildWindows API calls, and WM_GETTEXTLENGTH and WM_GETTEXT messages. I'll try to knock up an example later tonight. This method will only work for those controls that support the WM_SETTEXT message, meaning that if you directly draw the text to the window/control using DrawText or TextOut that you will miss searching those controls. ---- Derek confidential information intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Global Technology Australasia Limited.