Sign in to follow this  
Followers 0

[Closed] IE.au3, _IECreate fails when called in a SendMessage Function

2 posts in this topic

#1 ·  Posted (edited)

Here is my main code

#include <IE.au3>
GUIRegisterMsg(0x9997, '_IE')
Opt('WinTitleMatchMode', 2 )
local $iebars

$TaskBarGUI=GUICreate('', '', '', '', 960, 1230)

While 1

Func _IE($handle, $msgID, $wParam, $lParam)
_IENavigate ($iebars, '',0)

Here is my secondary exe

#include <SendMessage.au3>

$var = WinList("[Class:AutoIt v3 GUI]")
for $i = 1 to $var[0][0]
if $var[$i][0] = "" Then
_SendMessage($var[$i][1], 0x9997, "", "")


If WinExists("[Class:IEFrame]") Then
run("C:\Program Files (x86)\Internet Explorer\iexplore.exe")

So i run the main exe, i then run the secondary exe i get this error message

--> IE.au3 V2.4-0 Error from function _IECreate (Browser Object Creation Failed)

--> IE.au3 V2.4-0 Error from function _IENavigate, $_IEStatus_InvalidDataType

I am not sure why i get this error message, as the code that creates the IE is used elsewhere within the main script without issues so i dont see why it suddenly produces a error message when put inside a function? The variables and .au3 are being declared outside the function so i am confused :)

Edited by IanN1990

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  
Followers 0