Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (4 - 6 of 3759)

1 2 3 4 5 6 7 8 9 10 11 12
Ticket Resolution Summary Owner Reporter
#3841 No Bug COM Error Handling kAnon
Description

Error handler does not work with array elements.

#include <StringConstants.au3>

test()

Func test()
    Local $oComError = ObjEvent('AutoIt.Error', onComError)
    #forceref $oComError

    Local $oObject
    Local $aoObjects[1]
    $oObject.TestComError() ; error handled
    $aoObjects[0].TestComError() ; error not handled
EndFunc   ;==>test

Func onComError($oComError)
    With $oComError
        ConsoleWrite(@ScriptName & ' (' & .ScriptLine & ') : ==> COM Error intercepted !' & @CRLF & _
                @TAB & '.Number:' & @TAB & @TAB & '0x' & Hex(.Number) & @CRLF & _
                @TAB & '.WinDescription:' & @TAB & StringStripWS(.WinDescription, BitOR($STR_STRIPLEADING, $STR_STRIPTRAILING, $STR_STRIPSPACES)) & @CRLF & _
                @TAB & '.Description:' & @TAB & @TAB & .Description & @CRLF & _
                @TAB & '.Source:' & @TAB & @TAB & .Source & @CRLF & _
                @TAB & '.HelpFile:' & @TAB & @TAB & .HelpFile & @CRLF & _
                @TAB & '.HelpContext:' & @TAB & @TAB & .HelpContext & @CRLF & _
                @TAB & '.LastDllError:' & @TAB & @TAB & .LastDllError & @CRLF & _
                @TAB & '.ScriptLine:' & @TAB & @TAB & .ScriptLine & @CRLF & _
                @TAB & '.RetCode:' & @TAB & @TAB & '0x' & Hex(.RetCode) & @CRLF & @CRLF)
        SetError(.Number)
    EndWith
EndFunc   ;==>onComError

Console output

... : ==> COM Error intercepted !
    .Number:         0x000000A9
    .WinDescription: Variable must be of type 'Object'.
    .Description:
    .Source:
    .HelpFile:
    .HelpContext:
    .LastDllError:   0
    .ScriptLine:     1
    .RetCode:        0x00000000

... (12) : ==> Variable must be of type "Object".:
$aoObjects[0].TestComError()
$aoObjects[0]^ ERROR

Windows 10 Pro 21H1 x64 AutoIt Version: 3.3.14.5 / 3.3.15.4

#3840 No Bug file path given does not selects properly anonymous
Description

When we want to select any file for uploading to attach a specific mail but path given using python coding in pycharm intrpretor it does not gives proper path as given in python coding it reads: as ; and D as d and vice versa givinf error file not found plse sort these error thrown

#3839 Rejected User data in control anonymous
Description

I suggest adding functions to associate data (of any type) with the control. This will greatly simplify the development of scripts with a graphical interface that work with data.

GUISetParam($vData [, $hGui])
GUICtrlSetParam($idCtrl, $vData)
TrayItemSetParam($idCtrl, $vData)

GUIGetParam([$hGui])
GUICtrlSetParam($idCtrl)
TrayItemSetParam($idCtrl)

Many UI frameworks for other programming languages provide this opportunity. For example the "Tag" field in C# WinForms, WPF, UWP... WinAPI also has the ability to store a pointer to user data (!) and AutoIt uses this for its own purposes, but does not give users this opportunity.

1 2 3 4 5 6 7 8 9 10 11 12
Note: See TracQuery for help on using queries.