Jump to content

How can we differentiate two windows


shiv
 Share

Recommended Posts

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 by vis
Link to comment
Share on other sites

  • Moderators

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 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

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 by Pincopanco

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

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...