Specify form with vbs script

0

Personal I'm trying to login to vbs but it is not working very well. The system is making the browser behave strangely, if youtube is open it loads the page, gives automatic play and etc. I think the problem is because I'm not specifying the form and fields, so I want to know how to do this.

set WshShell = WScript.CreateObject("WScript.Shell")
call WshShell.Run("Firefox.exe url do site ",1 ,false)
WScript.Sleep 4000
WshShell.SendKeys ("email")
WScript.Sleep 2000
WshShell.SendKeys "{TAB}"
WScript.Sleep 2000
WshShell.SendKeys ("key")
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{ENTER}"
WScript.Quit()
    
asked by anonymous 16.01.2018 / 16:16

0 answers