Jump to content

Recommended Posts

  • Administrators
Posted (edited)

File Name: AutoIt v3.3.9.23 Beta

File Submitter: Jon

File Submitted: 28 Nov 2013

File Category: Beta

 

3.3.9.23 (28th November, 2013) (Beta)

AutoIt:

- Fixed #2518: Static keyword not working correctly.

- Fixed #2541: Accessing object methods or properties on a non-object when error handler is installed.

- Fixed: StringStripCR() and StringAddCR() not working with strings that contain nulls.

UDFs:

- Changed: $INTERNET_FLAG_NO_CACHE_WRITE default value for _FTP_ListToArray*().

- Added #2540: _ArrayDisplay() can copy Header and Row.

- Added: _GDIPlusTextureCreateIA().

- Fixed #2539: _ArrayUnique() doc precision.

- Fixed #2521: Removed _IEFormElementSetValue[5].au3 example.

- Fixed: _SQLite_...() running in X64 Mode.

- Fixed: _SQLite_Startup() parameter checking and doc.

AutoIt3Help:

- Changed: Version number to 1.0.0.5.

- Fixed #2519: Wrong page opening if launch without parameter.

 

Click here to download this file

Edited by Melba23
Added Trac tags
Posted

Thanks Jon.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Default properties no longer work:

$oObj = ObjCreate("Shell.Explorer")

ConsoleWrite($oObj() & @CRLF)

That code should print "Microsoft Web Browser Control".

Default property/method is essential for InterfaceDispatch type of objects because it returns object pointer:

Global Const $sIID_IUnknown = "{00000000-0000-0000-C000-000000000046}"
$oShellUnk = ObjCreateInterface("Shell.Application", $sIID_IUnknown, "")

ConsoleWrite(ObjName($oShellUnk) & @CRLF)
ConsoleWrite($oShellUnk() & @CRLF)

♡♡♡

.

eMyvnE

Posted

Confirmed as fixed.

Local $hArray = 0
_AssociativeArray_Startup($hArray)

$hArray('Example') = 'This should display correctly.' ; $hArray.Item('Example') = 'This should display correctly.'

MsgBox(4096, '', $hArray('Example'))

Func _AssociativeArray_Startup(ByRef $aArray, $fIsCaseSensitive = False) ; Idea from MilesAhead.
    $aArray = ObjCreate('Scripting.Dictionary')
    ObjEvent('AutoIt.Error', '__AssociativeArray_Error')
    If IsObj($aArray) = 0 Then
        Return SetError(1, 0, 0)
    EndIf
    $aArray.CompareMode = Int(Not $fIsCaseSensitive)
EndFunc   ;==>_AssociativeArray_Startup

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted

D4RKON3,

Because she resigned from the Dev team - see the first paragraph of this post. :(

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Hello,

I started testing with this Beta and encountered the following error with a script that automates IE using IE.au3:

Line 769 (of _IELinkClickByIndex procedure in IE.au3)

$oLink = $oLinks($i_index)

$oLink = $oLinks^ERROR

Error: Variable cannot be accessed in this manner.

The error does not occur with the regular GA version of AutoIt3.

Below is the procedure that called IE.au3 at the time of the error:

Func SetFromToDates()
    Notify(0, "", "Setting from/to dates...", 0, 1, 0)

    If _IEImgClick($oIE, "002006825000000609022001E.gif", "src", 3) = 0 Then
        Notify(0, "", "Unable to click on Additional Criteria button", 0, 1, 0)
        Return 1
    EndIf

    $result = WinWait("Additional Search Criteria", "", 5)
    If $result = 0 Then
        Notify(0, "", "Unable to get Additional Criteria window", 0, 1, 0)
        Return 1
    EndIf

    $oIE2 = _IEAttach("Additional Search Criteria")
    If @error Then
        Notify(0, "", "Unable to attach to Additional Criteria window", 0, 1, 0)
        Return 1
    EndIf

    _IELoadWait($oIE2)

    $oForm2 = _IEFormGetObjByName($oIE2, "MORE")
    If @error Then
        Notify(0, "", "Unable to get Additional Criteria Form", 0, 1, 0)
        Return 1
    EndIf

    $o_date_selection = _IEFormElementGetObjByName($oForm2, "DATE_SELECTION")
    If @error Then
        Notify(0, "", "Unable to get Date Selection field", 0, 1, 0)
        Return 1
    EndIf

    If _IEFormElementSetValue($o_date_selection, "USER") = 0 Then
        Notify(0, "", "Unable to set Date Selection field", 0, 1, 0)
        Return 1
    EndIf

    Sleep(2000)

    $o_from_date = _IEFormElementGetObjByName($oForm2, "DATE_FROM1")
    If @error Then
        Notify(0, "", "Unable to get From Date field", 0, 1, 0)
        Return 1
    EndIf

    If _IEFormElementSetValue($o_from_date, $fromDate) = 0 Then
        Notify(0, "", "Unable to set From Date field", 0, 1, 0)
        Return 1
    EndIf

    $o_to_date = _IEFormElementGetObjByName($oForm2, "DATE_TO1")
    If @error Then
        Notify(0, "", "Unable to get To Date field", 0, 1, 0)
        Return 1
    EndIf

    If _IEFormElementSetValue($o_to_date, $toDate) = 0 Then
        Notify(0, "", "Unable to set To Date field", 0, 1, 0)
        Return 1
    EndIf

    $SelectButtonFound = False
    $lnkCount = 0
    $PageLinks = _IELinkGetCollection($oIE2)

    For $lnk In $PageLinks
        If StringInStr($lnk.href, "javascript:Form_HandleSubmit();") Then
            $SelectButtonFound = True
            ExitLoop
        EndIf
        $lnkCount += 1
    Next

    If _IELinkClickByIndex($oIE2, $lnkCount, 0) = 0 Then
        Notify(0, "", "Unable to click on Select button", 0, 1, 0)
        Return 1
    EndIf

    Sleep(2000)

    _IELoadWait($oIE)

    Return 0
EndFunc   ;==>SetFromToDates

Is this a bug in this AutoIt3 Beta?

-Doug

Posted
  On 12/6/2013 at 3:42 PM, James said:

I've always wished that the ticket numbers were linked directly to the Trac pages.

They are, on both the Forum and in the new help file.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted

James,

Do you mean like this  #2550? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

WAD. AutoIt does an internal conversion to a decimla number.

If you need hex as output you have to translate it yourself.

My UDFs and Tutorials:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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