All Forums >> [Scripting] >> WSH & Client Side VBScript >> have a vb script that can command a java script to run on a web page Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I want to write a script that can click a button that executes a java script on a webpage.
So far I have:
Set oIE = WScript.CreateObject("InternetExplorer.Application") Set WshShell = WScript.CreateObject("WScript.Shell") oIE.visible = 1 oIE.navigate "http://some_webpage.htm"
Do While (oIE.Busy) WScript.Sleep 200 Loop
When I hold my mouse over the button I want to execute it says java:some_func.
I am new to both vbs and java script so I don't understand how they interact. I tried to use oIE.GetProperty on the java script and its vars but I don't think I am using it correctly.