1 - Scan gmail until the e-mail with that specific subject line is available (I dont actually need to click on the e-mail, i just need to know its available as this will be my trigger to navigate to a website).
2 - If e-mail available, navigate to the website but if the site directs me back to the login page than login (I have the login macro all setup just need to know how to identify if website is logged in or not).
3 - I dont want the macro to keep looping through if an e-mail is found and the website is open. only loop (scan) if e-mail not available and website (tab-2) closed.
Below is what I have so far. If anyone could provide assistance that would be appreciated. BTW, my gmail is set to Basic HTML as I read that would be better for iMacro. I'm open to opinions on this as well.
Code: Select all
VERSION BUILD=10022823 'Check e-mail/open e-mail TAB T=1 URL GOTO=https://mail.google.com/mail/u/0/h/1rmx10yed8z4p/?& TAG POS=1 TYPE=SPAN FORM=NAME:f ATTR=TXT:*<SP>email<SP>subject<SP>verbiage.<SP>* 'Open a new tab and navigate to website of my choice TAB OPEN TAB T=2 URL GOTO=https://www.WebsiteExample/AgentDashboard.html/dashboard 'Enter login information and enter site SIZE X=1172 Y=583 WAIT SECONDS=2.72 DS CMD=CLICK X=524 Y=173 CONTENT= DS CMD=KEY CONTENT=MyUserName DS CMD=CLICK X=505 Y=230 CONTENT= DS CMD=KEY CONTENT=MyPassword DS CMD=CLICK X=596 Y=281 CONTENT= WAIT SECONDS=5
iMacro Browser - Stealth Mode (identify as native Internet Explorer)
Windows 10 Pro