Custom Query (3933 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (475 - 477 of 3933)

Ticket Resolution Summary Owner Reporter
#833 No Bug Bug in function DllOpen () fristo
Description

A Dll that not exist can not provide a handle. In this case the DllOpen function return value @error should set to -1.

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.0.0
 Author:         fristo

 Script Function:
	Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

	Local $nameDll="netapi32.dll"
	Local $Netapi
	
	$Netapi = DllOpen($nameDll)
	MsgBox(64, "@ERROR Of DllOpen", "Call DllOpen (" & $nameDll & ")" & @CRLF & @CRLF & "@error = " & @error)
	DllClose($Netapi)
	ExistDLL ($nameDll)


	$nameDll="net___api32.dll"
	$Netapi = DllOpen($nameDll)
	MsgBox(48, "@ERROR Of DllOpen", "Call DllOpen (" & $nameDll & ")" & @CRLF & @CRLF & "@error = " & @error)
	DllClose($Netapi)
	ExistDLL ($nameDll)
	
	Exit
	
	
; =============================================================================	


Func ExistDLL ($name)	
	
	Local $fullName = @SystemDir & "\" & $name
	
	If FileExists($fullName) > 0 Then
		MsgBox(0, "Result of FileExist", "File '" & $fullName & "'" & @CRLF & @CRLF & "exist")
	Else
		MsgBox(48, "Result of FileExist", "File '" & $fullName & "'" & @CRLF & @CRLF & "exist not")
	EndIf
	
EndFunc
	
	
; =============================================================================	
#834 Rejected Request for _FileListToArray() to offer additional options Rudi
Description

Hi.

It would be nice, if the native _FileListToArray() would offer the options of a UDF I found quite a time ago in the AI forum.

Authors: randallc ; modified from SolidSnake and big_daddy and SmoKE_N and GEOsoft!


; _FileListToArrayFaster1e.au3 #include-once #include<array.au3>;for _ArrayToString() and _ArrayInsert() ;=============================================================================== ; ; Description: lists all files and folders in a specified path ; Syntax: _FileListToArray($s_Path, $s_Filter = "*", $i_Flag = 0) ; Parameter(s): $s_Path = Path to generate filelist for ; $s_Filter = The filter to use. Search the Autoit3 manual for the word "WildCards" For details ; $i_Flag = determines whether to return file or folders or both ; $i_Flag=0(Default) Return both files and folders ; $i_Flag=1 Return files Only ; $i_Flag=2 Return Folders Only ; $i_Recurse = Indicate whether recursion to subfolders required ; $i_Recurse=0(Default) No recursion to subfolders ; $i_Recurse=1 recursion to subfolders ; $i_BaseDir = Indicate whether base directory name included in returned elements ; $i_BaseDir=0 base directory name not included ; $i_BaseDir=1 (Default) base directory name included ; $s_Exclude= The Exclude filter to use. "WildCards" For details ; ; Requirement(s): None ; Return Value(s): On Success - Returns an array containing the list of files and folders in the specified path ; On Failure - Returns the an empty string "" if no files are found and sets @Error on errors ; @Error=1 Path not found or invalid ; @Error=2 Invalid $s_Filter ; @Error=3 Invalid $i_Flag ; @Error=4 No File(s) Found ; ; Author(s): randallc <randallc@…>; modified from SolidSnake and big_daddy and SmoKE_N and GEOsoft! ; Note(s): The array returned is one-dimensional and is made up as follows: ; $array[0] = Number of Files\Folders returned ; $array[1] = 1st File\Folder ; $array[2] = 2nd File\Folder ; $array[3] = 3rd File\Folder ; $array[n] = nth File\Folder ; ;=============================================================================== [snip]


Searching the Autoit Forum for that UDF doesn't return any results right now, so I'll attach that UDF with this feature request.

Regards, Rudi.

#835 Rejected Recursion depth macro weaponx
Description

Would it be possible to have a macro that contains the current depth of a recursive function?

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.