shiv Posted August 2, 2013 Share Posted August 2, 2013 (edited) Hi AutoIT Team, Can anybody suggest which functions i can use to differentiate between two windows which have the same name, same title and both are opened. Actually i was trying to make a script for on MS Outlook , In which 1. I have opened a compose mail and attach a file(say: Q) using attach file button. 2. I again compose a mail and attach another file(SAY:R) using attach outlook item. So now i have two opened compose mail window with same title, same text but with different attachments. now 1st i want to send the mail which has the attachment "Q". and then send the mail having attachment "R". is there any way that i can take the control to window on the basis of the name of the attachment or some other thing you can kindly suggests please.............. Edited August 2, 2013 by vis Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 2, 2013 Moderators Share Posted August 2, 2013 (edited) Have you taken a look at the OutlookEX UDF by Water? It may make things easier on you, as can use the unique Entry ID of the message. You can find the thread in the Example Scripts forum. Edit: '?do=embed' frameborder='0' data-embedContent>> Edited August 2, 2013 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Gianni Posted August 2, 2013 Share Posted August 2, 2013 (edited) hi vis, if you open programmatically the two windows, then a "brutal" workaround could be to change the wintitle of the windows (with WinSetTitle()) as soon as you open it, so to distinguish each other later (I have seen that doing so, the "visible title of the new mail window do not change, while 'Autoit Window Info' sees the new title. Also, if you write in the "Subject" field of the new mail, also the title of the window change accordingly. bye Edited August 2, 2013 by Pincopanco Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
shiv Posted August 6, 2013 Author Share Posted August 6, 2013 Thank you very much Pincopanco Link to comment Share on other sites More sharing options...
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