Jump to content

_IENavigate Twice issue


pillbug
 Share

Recommended Posts

I have embedded internet into my gui. I want to be able to rewrite a window/page (not sure the world). After I clicked on a link. I suspect my variable, in my case $IE, is changed when I go to a new html.

blah blah, this is where I'd create the object

_IENavigate($IE, "")
_IEBodyWriteHTML($IE,$html)

This is what I do to clear the page, however, if I click on a link, it doesn't work

_IENavigate($IE, "")

You are probably asking, why don't I just hide this window and create a new window. The reason is the link I go to has music on it, which is constantly playing, even when the window is hidden, through

GuiSetState(@SW_HIDE)

Perhaps, the question is, is there a way to delete a gui? or find the new value of $IE?

Link to comment
Share on other sites

I have embedded internet into my gui. I want to be able to rewrite a window/page (not sure the world). After I clicked on a link. I suspect my variable, in my case $IE, is changed when I go to a new html.

blah blah, this is where I'd create the object

_IENavigate($IE, "")
_IEBodyWriteHTML($IE,$html)

This is what I do to clear the page, however, if I click on a link, it doesn't work

_IENavigate($IE, "")

You are probably asking, why don't I just hide this window and create a new window. The reason is the link I go to has music on it, which is constantly playing, even when the window is hidden, through

GuiSetState(@SW_HIDE)

Perhaps, the question is, is there a way to delete a gui? or find the new value of $IE?

The rest of your post makes no sense to me, but you can get the object reference to a new IE browser instance with _IEAttach(). The question is, are you creating a new instance of IE? You don't show much code here, and what you show doesn't make sense. Navigating the browser destroys all object element references inside that page, but the reference to the browser (usually $oIE in these scripts) remains valid, so what causes you to look for "the new value of $IE"?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

The rest of your post makes no sense to me, but you can get the object reference to a new IE browser instance with _IEAttach(). The question is, are you creating a new instance of IE? You don't show much code here, and what you show doesn't make sense. Navigating the browser destroys all object element references inside that page, but the reference to the browser (usually $oIE in these scripts) remains valid, so what causes you to look for "the new value of $IE"?

:)

I solved the issue with GUIdelete. Thanks

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...