Jump to content

_IEAction


Go to solution Solved by dragan,

Recommended Posts

is there any command to wait if _IEAction is done??

e.g.

[auotit]

$oIE = _IECreate("http://www.autoitscript.com/forum/index.php")

_IELoadWait($oIE)

_IEAction($oIE, "back")

; wait after loading the previous page

; then a command

[/autoit]

Thanks.

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

 

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

Link to comment
Share on other sites

  • Solution

Correct me if I'm wrong, but there's no waiting when you're going BACK, because the previous page is being loaded up from memory.

Anyway, if you're going back to the point where previous page is no longer in your memory, you can use _IELoadWait again:
 

#include <IE.au3>
$oIE = _IECreate("http://www.yahoo.com/")
MsgBox(0, 'message', 'Yahoo loaded!')
_IENavigate($oIE, "http://www.google.com/")
MsgBox(0, 'message', 'Google loaded!')
_IEAction($oIE, "back")
_IELoadWait($oIE)
MsgBox(0, 'message', 'Loaded previous page.' & @CRLF & @CRLF & "Press OK to close script.")
_IEQuit($oIE)
Edited by dragan
Link to comment
Share on other sites

that's what i was looking for, thanks bro <3

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

 

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

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...