Hello everyone,
I am writing a small script that will open my bandwidth usage page through Firefox and an Excel spreadsheet.
Here is the code:
Help, suggestions or alternatives are welcome.
Thanks a lot,
I am writing a small script that will open my bandwidth usage page through Firefox and an Excel spreadsheet.
Here is the code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\Users\J\Desktop\Firefox.lnk"
WScript.Sleep 300
WshShell.SendKeys "http://www.cogeco.ca/cable/on/en/mycogeco/home.html"
WshShell.SendKeys "{ENTER}"
WshShell.Run "F:\Common\JiL"
WshShell.SendKeys "band"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1500
WshShell.AppActivate "Cogeco - Mozilla Firefox"
WScript.Quit [exitcode]
The problem is that the AppActivate command at the end is not fousing on that window. I can clearly see the window's name: Cogeco - Mozilla FirefoxHelp, suggestions or alternatives are welcome.
Thanks a lot,