i write vbscript to login to gmail ,how can change browser to firefox and download all attachments with this script? On Error Resume Next Const PAGE_LOADED = 4 Set objIE = CreateObject("InternetExplorer.Application") Call objIE.Navigate("http://www.gmail.com") objIE.Visible = True Do Until objIE.ReadyState = PAGE_LOADED : Call WScript.Sleep(100) : Loop objIE.Document.all.Email.Value = "test" objIE.Document.all.Passwd.Value = "12345" If Err.Number <> 0 Then msgbox "Error: " & err.Description End If Call objIE.Document.all.gaia_loginform.submit Set objIE = Nothi Code (markup):
You probably need to get this http://www.iol.ie/~locka/mozilla/control.htm See similar question and answers here http://www.vbforums.com/showthread.php?563497-Create-Firefox-object-instead-of-Explorer