anyday Posted April 26, 2011 Share Posted April 26, 2011 hey guys, im trying to automate a website i use at work a lot, it uses javascript for its link menu, i tried just having the browser navigate to the url in the javascript code but it would not work, is there a way to send a javascript command to the browser? i tried searching the forum for javascript but it would not let me. here is the piece of code i need to send back to the browser. createMenuItem("New Flood Zone Determination","javascript:window.top.DisplayContentPage('https://www.floodpro.net/FloodZones/ZoneForm.asp?wSessionID="+window.top.SessionID()+"&Rd=0.8863423')",false,"","#ffffff"); any help or advice on sending javascript commands to the browser would be nice, Thanks in advance Link to comment Share on other sites More sharing options...
wakillon Posted April 27, 2011 Share Posted April 27, 2011 I use this way $_JScriptCmd1 ="javascript:fv=document.getElementById('watch-headline-title').innerText;" $oIE = ObjCreate ( "InternetExplorer.Application" ) $oIE.Visible = 1 $oIE.Navigate ( 'http://www.youtube.com/watch?v=t5Sd5c4o9UM' ) Do Sleep ( 100 ) Until Not $oIE.Busy $oIE.Navigate ( $_JScriptCmd1 ) AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now