Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SCript??
#2
Not Solved
'You need to be logged into the Gmail account
Code:
Browser("title:=Gmail.*").Page("title:=Gmail.*").Link("innertext:=Inbox.*").Click
Browser("title:=Gmail.*").Page("title:=Gmail.*").Sync

'To get the innertext of inbox link
inboxcount = Browser("title:=Gmail.*").Page("title:=Gmail.*").Link("innertext:=Inbox.*").getroproperty("innertext")
If inboxcount = "Inbox" Then
Print "No Unread Emails."
ExitAction
Else
emailcount = replace(inboxcount, "Inbox","") 'replaces inbox with space
emailcount = Rtrim(ltrim(emailcount)) 'removes all the spaces
emailcount = replace(emailcount, "(","")
emailcount = replace(emailcount, ")","")
Print "You have "&emailcount& " unread emails in your inbox."
End If
plz run this Script
Reply


Messages In This Thread
SCript?? - by rawat.jagat9 - 02-14-2013, 03:48 PM
SCript?? - by Pavan keerthi - 02-14-2013, 05:04 PM
RE: SCript?? - by newqtp - 02-15-2013, 08:39 PM
RE: SCript?? - by Ram2009 - 02-16-2013, 02:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)