RE: Windows titles are case sensitive
"jack horsfield" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <63146FA45FDE93458F8540FE58C29A360665BFFA@gpkxchcln6.enterprise.veritas.com> |
you could, perhaps, check for 'C:\Documents and Settings' and when you get that, grab the window title and do your own case-insensitive comparison against the user name? jack I pulled out my Ipcress File and sat there, idly filing my Ipcress -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Martin J Pensak Sent: 25 October 2006 13:50 To: [email protected] Subject: [AutoIt] Windows titles are case sensitive I'm using AutoIT to do some things in a folder window which involves the user's username, e.g. c:\documents and settings\%username%. No problem, I retrieved the username and used Run("explorer c:\documents and settings\ " & $user), basically, the window I want opens up fine. But depending on how the user account was created on the PC, the username part of the folder name may be in upper case, lower case, or even mixed. So then when I want to do a WinWaitActive to be sure my new window is open before I Send keys to it, I'm in trouble. I guess I could use WinList, check all window titles looking for the one I want, but I'd have to wait and poll that list occasionally, not nearly as clean as WinWaitActive. Sure would be nice if there was another setting like WinTitleMatchOptions that requested non-case-sensitive matchinig. Thanks. This communication is for use by the intended recipient and contains information that may be Privileged, confidential or copyrighted under applicable law. If you are not the intended recipient, you are hereby formally notified that any use, copying or distribution of this e-mail, in whole or in part, is strictly prohibited. Please notify the sender by return e-mail and delete this e-mail from your system. Unless explicitly and conspicuously designated as "E-Contract Intended", this e-mail does not constitute a contract offer, a contract amendment, or an acceptance of a contract offer. This e-mail does not constitute a consent to the use of sender's contact information for direct marketing purposes or for transfers of data to third parties. Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean http://www.DuPont.com/corp/email_disclaimer.html [Non-text portions of this message have been removed] Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AutoItList/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/AutoItList/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/