Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Struggling with a small part of my script

$
0
0

I am working on a script to pull up several different windows and cycle between them. At the end of each cycle the page is refreshed. I have ran into an issue with our mail inboxes that causes it to lock down the inboxes due to "suspicious" activity because of the refreshes. I'm wanting to add in a check to skip refreshing the inboxes, but to refresh everything else. The page title changes according to the amount of unread emails in the inboxes so it has to account for that.

 

The title for our inboxes reads like this.

Inbox (N unread) - inbox@company.com - Company Mail - Google Chrome

Inbox (N unread) - inbox2@company.com - Company Mail - Google Chrome

 

 

This is what I have. I know it doesn't work right, but I'm not sure what to do.

 

Opt("WinTitleMatchMode", -2) $InboxCheck=WinGetTitle("", "[active]") IF NOT ($InboxCheck = "Mail") THEN Send("{F5}")
 
I think what I need to do is just not refresh any page that contains the title "Inbox". How would I accomplish this?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>