Erik. Posted May 28, 2009 Share Posted May 28, 2009 (edited) Dear forum users, I have a website whit some javascript/ html code etc. Want to click on a javascript link. Only problem is it will not work. What i tried was: #include <IE.au3> $oIE = _IECreate ("http://10.21.31.139",0,1,1,0) sleep(3000) _IENavigate($oIE,"java script:StartRecording(1);") sleep(2000) _IEQuit($oIE) The link is: <a href="java script:StartRecording(1);"> <img hieght="29" border="0"width="36" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('recl','','btn_record_hover.gif,1)" onmouseup="MM_swapImage('recl',"",'btn_record_hover.gif',1)" onmousedown="MM_swapImage('recl','','btn_record_pressed.gid',1)" name="recl" title="Opname camera 1 starten" src="http://10.21.31.139/btn_record_normal.gif"/> Hope you can help me to click that button, so the javascript will run. Edited May 28, 2009 by Erik. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
BrettF Posted May 28, 2009 Share Posted May 28, 2009 (I think the forum does this) But there is a space between Java and Script... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Erik. Posted May 28, 2009 Author Share Posted May 28, 2009 yeah i know, when i set them together it even does not work for me I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Juvigy Posted May 28, 2009 Share Posted May 28, 2009 Untested but please try this: $oDoc = _IEDocGetObj($oIE) $oArray = $oDoc.getElementsByTagName("a") for $element in $oArray if $element.title="Opname camera 1 starten" then _IEAction($element,"click") next Link to comment Share on other sites More sharing options...
Erik. Posted May 28, 2009 Author Share Posted May 28, 2009 Thanks for your script, but it does not work at all I found i had a frame called inner_frmset.html i can open the file but it still does not work.Hope you can help. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Juvigy Posted May 28, 2009 Share Posted May 28, 2009 Can you post the site - i want to test. Or give me the full source code of the html. Link to comment Share on other sites More sharing options...
Erik. Posted May 28, 2009 Author Share Posted May 28, 2009 Hi, Yeas i will post the site for you, hope i can get the source. It will be Theusday because i am now free those days. I little problem, hard to find and fix 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