Fazan123312 0 Posted February 20, 2015 hi i have a problem calling java functions on IE7 installed on win xp. This is the problematic html part: <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" style="width: 94px; margin-left: 20px;"> Dodaj ... <span class="caret"></span> </a> <ul class="dropdown-menu"> <!-- dropdown menu links --> <li><a onclick="objSMSsend.addPhoneClicked()">phone number</a></li> <li class="divider"></li> <li><a onclick="objSMSsend.addAddrClicked()">addr number</a></li> <li class="divider"></li> <li><a onclick="objSMSsend.addGroupClicked()">group</a></li> <li class="divider"></li> <li><a onclick="objSMSsend.showImportDialog()">CSV file</a></li> </ul> </div> problematic part: <li><a onclick="objSMSsend.addPhoneClicked()">phone number</a></li> i have tried this: $oIE = _IECreate ("my link") $oIEDoc = _IEDocGetObj($oIE) $oIEDoc.parentwindow.setTimeout("objSMSsend.addPhoneClicked()", 0) $oIE.document.parentwindow.eval("objSMSsend.addPhoneClicked()") $oIE.window.execScript("objSMSsend.addPhoneClicked()") $oIE.window.execScript("objSMSsend.addPhoneClicked()","javascript") $oIe.document.parentWindow.execScript("objSMSsend.addPhoneClicked()","javascript") $oIEDoc.window.execScript("objSMSsend.addPhoneClicked()") nothing works of this examples. f you got any idea i would appreciate it, thx Fazan Share this post Link to post Share on other sites
mikell 1,024 Posted February 20, 2015 Did you try _IELinkClickByText($oIE, "phone number") ? Share this post Link to post Share on other sites
SmOke_N 211 Posted February 20, 2015 _IEFormElementOptionSelect() doesn't work for you? Have you tried getting a reference to the objsend object? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites
Fazan123312 0 Posted February 21, 2015 Did you try _IELinkClickByText($oIE, "phone number") ? yes didnt solve problem _IEFormElementOptionSelect() doesn't work for you? Have you tried getting a reference to the objsend object? i dont need to select it i only need to call this event onclick="objSMSsend.addPhoneClicked()" Share this post Link to post Share on other sites
mikell 1,024 Posted February 21, 2015 Select it then $oObject.fireEvent("onclick") Share this post Link to post Share on other sites
Fazan123312 0 Posted February 22, 2015 Select it then $oObject.fireEvent("onclick") can you please show me how to implement it in my example? Share this post Link to post Share on other sites