Jump to content
Sign in to follow this  
haggard

Problem with script using IE.au3

Recommended Posts

haggard

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 by haggard

Share this post


Link to post
Share on other sites
haggard

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?

Share this post


Link to post
Share on other sites
StandardUser

I didn't understand your problem completely, but instead of

_IENavigate (javascript code)

try to use

$oIE.document.parentwindow.execScript("javascript code")

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.