Jump to content
Sign in to follow this  
Hyflex

Warning when using _IEAttach

Recommended Posts

Hyflex

Hey Guys,

I have a warning popping up in the console when using _IEAttach, it's ultimately not effecting how my macro is running as I've got it working fine but I would like to resolve what I'm doing wrong:

_IEAttach("192.168.1.1", "CustomRouterFirmware", 1)
$oIE = _IECreate("192.168.1.1", 0, 0)

Error:

--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch

Why does that not work correctly?

Thanks

- XG

Edited by XxXGoD

Share this post


Link to post
Share on other sites
MrMitchell

Your syntax is incorrect. "CustomRouterFirmware" field is expecting one of the $s_mode listed in the help file. Maybe you want to put "Title" instead of "CustomerRouterFirmware" then the actual Title of the webpage instead of "192.168.1.1".

Share this post


Link to post
Share on other sites
Hyflex

Your syntax is incorrect. "CustomRouterFirmware" field is expecting one of the $s_mode listed in the help file. Maybe you want to put "Title" instead of "CustomerRouterFirmware" then the actual Title of the webpage instead of "192.168.1.1".

The title of the page is "CustomRouterFirmware" thats why I don't know why it's calling this error

Edited by XxXGoD

Share this post


Link to post
Share on other sites
MrMitchell

First parameter needs to be "CustomRouterFirmware". Second is "Title". Third is 1 or optional. I think even the second parameter can be optional.

Share this post


Link to post
Share on other sites
Hyflex

First parameter needs to be "CustomRouterFirmware". Second is "Title". Third is 1 or optional. I think even the second parameter can be optional.

The first parameter will be the same as the second?

I was trying something like this at first but it never worked:

$sUrl = "192.168.1.1"
$oIE = _IEAttach($sUrl, "CustomRouterFirmware")

If Not IsObj($oIE) Then
    $oIE = _IECreate()
    _IENavigate($oIE, $sUrl)
EndIf

Share this post


Link to post
Share on other sites
MrMitchell

Ok what you put as the first parameter depends on what you put as the second...

If you use URL then your command will have the $sURL as the first parameter then the second parameter should literally be "URL" including quotes.

If you use Title of the webpage then your command will have the title of the webpage as the first parameter then the second parameter should literally be "Title" including quotes.

Share this post


Link to post
Share on other sites
Hyflex

Ok what you put as the first parameter depends on what you put as the second...

If you use URL then your command will have the $sURL as the first parameter then the second parameter should literally be "URL" including quotes.

If you use Title of the webpage then your command will have the title of the webpage as the first parameter then the second parameter should literally be "Title" including quotes.

Ahh, I get it now gee thanks that explains it all so much better :)

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  

×