Jump to content

IE.au3 Library / Builder


Valuater
 Share

Recommended Posts

Maybe you want to try it and think again!!!...???

here try this ... for testing

#include <IE.au3>
#include <GUIConstantsEx.au3>
If @AutoItVersion > "4.2.10"  Then
    #include <WindowsConstants.au3>
    #include <StaticConstants.au3>
    #include <ButtonConstants.au3>
EndIf

.... However, the "compiler" may bypass the if/then statement.

8)

Where are you getting the

If @AutoItVersion > "4.2.10" Then

from? :);)

Because of all the dots in @AutoItVersion I replaced that line with

If StringReplace(@AutoItVersion, ".","") > 32100  Then
and my tests work out properly.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

  • Moderators

Where are you getting the

If @AutoItVersion > "4.2.10" Then

from? ;):D

Because of all the dots in @AutoItVersion I replaced that line with

If StringReplace(@AutoItVersion, ".","") > 32100  Then
and my tests work out properly.
That's not really proper either... Considering you're comparing a string to an integer :)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

@George

here try this ... for testing

..EDIT ..........................

I compiled this script

#include <GUIConstantsEx.au3>
If @AutoItVersion > "4.2.10"  Then
    #include <WindowsConstants.au3>
    #include <StaticConstants.au3>
    #include <ButtonConstants.au3>
    
EndIf

    MsgBox(0x0, "4.0 test", "$SS_CENTER = " & $SS_CENTER, 2)

and got this error

Posted Image

thus the #Includes are not included between the if/then statement

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

@George

here try this ... for testing

..EDIT ..........................

I compiled this script

#include <GUIConstantsEx.au3>
If @AutoItVersion > "4.2.10"  Then
    #include <WindowsConstants.au3>
    #include <StaticConstants.au3>
    #include <ButtonConstants.au3>
    
EndIf

    MsgBox(0x0, "4.0 test", "$SS_CENTER = " & $SS_CENTER, 2)

and got this error

Posted Image

thus the #Includes are not included between the if/then statement

8)

It still might have something to do with 4.2.10 instead of 3.2.10

If Int(StringReplace(@AutoItVersion, ".","")) > Int("32100")  Then
fixes the string vs integer problem.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

  • Moderators

It still might have something to do with 4.2.10 instead of 3.2.10

If Int(StringReplace(@AutoItVersion, ".","")) > Int("32100")  Then
fixes the string vs integer problem.
I didn't even look what ya'll were using the If/Then for.

No, #includes are not conditional. If they are in your script, then they are included regardless of a conditional statement.

Edit:

Holy Crap... When was this allowed ... seems I was wrong and not up to date. I can't believe Valik allowed this personally :)

If 1 = 1 Then
    #include <WindowsConstants.au3>
EndIf
GUICreate("abcde", 40, 40, -1, -1, $WS_CLIPSIBLINGS)
GUISetState()
While GUIGetMsg() <> -3
WEndoÝ÷ Ø*&¦)^±©Ý®éì~)Þjwkº{w®r$Þjëh×6If 1 = 2 Then
    #include <WindowsConstants.au3>
EndIf
GUICreate("abcde", 40, 40, -1, -1, $WS_CLIPSIBLINGS)
GUISetState()
While GUIGetMsg() <> -3
WEnd
Errors on both accounts. Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

I have a feeling that all of you are right. The #include lines are being replaced with the script it reference's content upon compile time, this is true. However, the If statement will still be present around those resulting lines, and if the condition fails, certain things inside the if statement will not work. For example:

If True = False Then ; Arbitrary condition that will not work
    Local $Temp = "Hello"
EndIf

MsgBox(0,"Test",$Temp)

That, when compiled, will result in the same error above, the variable was not created because that line was skipped due to the conditional check. However, I do not believe that will be the case for any internal functions within include files. My reasoning is the same with variables: you have to set variables above where they are used in the source code, but functions can be at the very bottom of a 10,000 line script, and can be used all the way back at line 1 and will work just fine. That is, unless Function definitions inside of a If/Then/EndIf section fails, but I doubt that.

Link to comment
Share on other sites

  • 3 months later...

Hi:

I'd really like to try out the IE-Builder, can someone help me figure out what's wrong here?

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Program Files\AutoIt3\Beta\IE-library_v2.0.au3"

C:\Program Files\AutoIt3\Beta\IE-library_v2.0.au3 (53) : ==> Variable used without being declared.:

$VLabel = GUICtrlCreateLabel("IE-Builder View", 10, 140, 140, 43, $SS_CENTER)

$VLabel = GUICtrlCreateLabel("IE-Builder View", 10, 140, 140, 43, ^ ERROR

>Exit code: 1 Time: 0.230

it looks like mulitple variables are not being set correctly:

$SS_CENTER

$BS_ICON

$BS_BITMAP

$SS_SUNKEN

$WS_BORDER

Using the latest beta & IE-builder v2.0

Thx,

Link to comment
Share on other sites

Hi:

I'd really like to try out the IE-Builder, can someone help me figure out what's wrong here?

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Program Files\AutoIt3\Beta\IE-library_v2.0.au3"

C:\Program Files\AutoIt3\Beta\IE-library_v2.0.au3 (53) : ==> Variable used without being declared.:

$VLabel = GUICtrlCreateLabel("IE-Builder View", 10, 140, 140, 43, $SS_CENTER)

$VLabel = GUICtrlCreateLabel("IE-Builder View", 10, 140, 140, 43, ^ ERROR

>Exit code: 1 Time: 0.230

it looks like mulitple variables are not being set correctly:

$SS_CENTER

$BS_ICON

$BS_BITMAP

$SS_SUNKEN

$WS_BORDER

Using the latest beta & IE-builder v2.0

Thx,

You are using the latest beta but IE-Builder is not

At the top of IE-Builder, replace the line #include<GUIConstants.au3> with the following lines

#include <ButtonConstants.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Hi:

Following your directions & then running the program, I now see the IE-Builder start & then close & then I get the below error:

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Program Files\AutoIt3\Beta\IE-library_v2.0.au3"

C:\Program Files\AutoIt3\Beta\IE-library_v2.0.au3 (121) : ==> Variable used without being declared.:

GUICtrlSetState(-1, $GUI_HIDE)

GUICtrlSetState(-1, ^ ERROR

>Exit code: 1 Time: 0.433

Here's how I modified the top of the IE-library_v2.0.au3 program:

#include <IE.au3>

#include <ButtonConstants.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

;#include <GuiConstants.au3>

When I leave the GuiConstants.au3 include in the program the IE-Builder opens, but some of the buttons are blank (but look like they might work) & I get the following error message:

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Program Files\AutoIt3\Beta\IE-library_v2.0.au3"

--> COM Error Encountered in IE-library_v2.0.au3

----> $IEComErrorScriptline = 435

----> $IEComErrorNumberHex = 80020009

----> $IEComErrorNumber = -2147352567

----> $IEComErrorWinDescription = Unspecified error

----> $IEComErrorDescription =

----> $IEComErrorSource =

----> $IEComErrorHelpFile =

----> $IEComErrorHelpContext = 0

----> $IEComErrorLastDllError = 0

>Exit code: 0 Time: 72.620

Please help!

You are using the latest beta but IE-Builder is not

At the top of IE-Builder, replace the line #include<GUIConstants.au3> with the following lines

#include <ButtonConstants.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

Link to comment
Share on other sites

Hi:

Ok here are my includes, but I still get blanks for the entire top row of buttons and the middle button in the 2nd row

#include <IE.au3>

#include <ButtonConstants.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

#include <GUIConstantsEx.au3>

Help!

Edited by Letsgo
Link to comment
Share on other sites

  • 9 months later...

Since the thread was left hanging, I want to confirm that the builder works for me as now.

As a reference, I am using

IE-library_v2.0.au3 with the following mod:

#include <IE.au3>

#include <ButtonConstants.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

#include <GUIConstantsEx.au3>

;#include <GuiConstants.au3>

Windows Vista

IE 8.0

and AutoIt v3.3.0.0

Link to comment
Share on other sites

FWIW, If you have problem running this program, one thing to try is to open it with SciTE4AutoIt3 first then hit F5 to run it.

It does not make sense to me but I had problems running it by double clicking it but it worked fine when I run it with F5.

Edited by KxS
Link to comment
Share on other sites

Updated to ver 2.0.0 by big_daddy

IE-Builder v2.0

previous dowloads 900 +/-

Credits to Dale Hohm for the Internet Explorer UDF Library

**** This is The Public Release of IE-Builder, a helpful tool in creating IE objects

Just to let you know: ie_builder.zip appears to be damaged (cannot be unzipped).
Link to comment
Share on other sites

  • 2 months later...

Trying to download ie_builder, but the link ie_Builder v2 appears to be broken. It takes me to the list of forums.

Where can I find ie_builder?

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