Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (220 - 222 of 3868)

Ticket Resolution Summary Owner Reporter
#2024 Rejected Add AutoIt.Error object property for script or file name. anonymous
Description

Reproducer (if necessary):

include.au3:

#include-once

Func _test()
  Local $oIE = ObjCreate("InternetExplorer.Application.1")

  $oIE.UnknownMethod
  Local $err = @error

  $oIE.Quit()

  Return SetError($err)
EndFunc

Main.au3:

#include "include.au3"

Global $g_eventerror = 0
Global $oMyError = ObjEvent("AutoIt.Error", "_MyErrFunc")

_test()

If $g_eventerror Then
  $g_eventerror = 0
  MsgBox(0, "AutoItCOM test", "Test passed: We got an error number: " & @error)
Else
  MsgBox(0, "AutoItCOM test", "Test failed!")
EndIf

Exit

Func _MyErrFunc()
  ConsoleWrite("We intercepted a COM Error !" & @CRLF & @CRLF & _
      "err.description is: " & @TAB & $oMyError.description & @CRLF & _
      "err.windescription:" & @TAB & $oMyError.windescription & @CRLF & _
      "err.number is: " & @TAB & Hex($oMyError.number, 8) & @CRLF & _
      "err.lastdllerror is: " & @TAB & $oMyError.lastdllerror & @CRLF & _
      "err.scriptline is: " & @TAB & $oMyError.scriptline & @CRLF & _
      "err.source is: " & @TAB & $oMyError.source & @CRLF & _
      "err.helpfile is: " & @TAB & $oMyError.helpfile & @CRLF & _
      "err.helpcontext is: " & @TAB & $oMyError.helpcontext & @CRLF _
      ; Something like
;~    "err.scriptname is: " & @TAB & $oMyError.scriptname & @CRLF _
      )

  Local $err = $oMyError.number
  If $err = 0 Then $err = -1

  $g_eventerror = $err
EndFunc
#1157 Completed Add Crypt.au3 Valik Valik
Description

Crypt.au3 needs cleaned up and added before the next beta (setting as blocking).

#2263 Completed Add CryptGenRandom Function to Crypt.au3 UDF AdmiralAlkex wraithdu
Description

Here's the function:

; #FUNCTION# ===================================================================
; Name...........: _Crypt_GenRandom
; Description ...: Fill a buffer with cryptographically random data.
; Syntax.........: _Crypt_GenRandom($pBuffer, $iSize)
; Parameters ....: $pBuffer - Pointer to buffer to fill with random data.
;                  $iSize - Size of the buffer pointed to by $pBuffer.
; Return values .: Success - Returns True
;                  Failure - Returns False and sets @error.
; Author ........: Erik Pilsits (wraithdu)
; Modified ......:
; Remarks .......: 
; Related .......: 
; Link ..........: @@MsdnLink@@ CryptGenRandom
; Example .......: Yes
; ==============================================================================
Func _Crypt_GenRandom($pBuffer, $iSize)
    _Crypt_Startup()
    Local $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptGenRandom", "handle", __Crypt_Context(), "dword", $iSize, "ptr", $pBuffer)
    Local $nError = @error
    _Crypt_Shutdown()
    If $nError Or (Not $aRet[0]) Then
        Return SetError(1, 0, False)
    Else
        Return True
    EndIf
EndFunc   ;==>_Crypt_GenRandom
Note: See TracQuery for help on using queries.