haggard Posted August 8, 2010 Share Posted August 8, 2010 (edited) Hi I have a one small problem with my script. $oIE = _IECreate ("link") here code to sign in on the website _IENavigate($oIE, "javascript code to make something visible(on the site)") $mess = _IEGetObjByName($oIE, 'message') _IEFormElementSetValue ($mess, "AutoIt IE.au3") Problem is that: when i sign in on the site and next i use _IEFormElementSetVaule for message with out using javascript code it works. But when i use _IENavigate to use javascript code i can't type text (_IeGetObjByName ($oIE <-because url isn't "link", it is my javascript code. Sorry, bad english xD. Can i make something like that:? $oIE = _IECreate ("link") sign in _IENavigate($oIE, "javascript code to make something visible(on the site)") $mess = _IEGetObjByName("link", 'message') _IEFormElementSetValue ($mess, "AutoIt IE.au3") Edited August 8, 2010 by haggard Link to comment Share on other sites More sharing options...
haggard Posted August 8, 2010 Author Share Posted August 8, 2010 Bump When i am in url "link" _IEFormElementSetVaule for textarea works, but when i do _IENavigate (javascript code) then _IEFormElementSetVaule doesn't work. How to do it works? Link to comment Share on other sites More sharing options...
StandardUser Posted August 8, 2010 Share Posted August 8, 2010 I didn't understand your problem completely, but instead of _IENavigate (javascript code) try to use $oIE.document.parentwindow.execScript("javascript code") Link to comment Share on other sites More sharing options...
haggard Posted August 9, 2010 Author Share Posted August 9, 2010 Hahah works great. Thank you very much. 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