Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (19 - 21 of 3866)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Resolution Summary Owner Reporter
#3982 Works For Me _ClipPutFile should not free memory Jpm Nine
Description

As per discussion here and MSDN :

https://www.autoitscript.com/forum/topic/211212-how-to-copy-a-file-to-the-clipboard-for-pasting-in-explorer/#comment-1527751

                        $aCall = DllCall("kernel32.dll", "ptr", "GlobalFree", "handle", $hGlobal)
                        If (@error Or $aCall[0]) And Not $iError Then
                                $iError = @error + 90
                                $iLastError = _WinAPI_GetLastError()
                        EndIf

should be removed from the script.

#3980 Rejected Hexadecimal notation in the range 0x80000000 to 0xFFFFFFFFFF AspirinJunkie
Description

In AutoIt, numerical values in the source code can be defined in decimal notation as well as in hexadecimal notation. In the number range 0x80000000 to 0xFFFFFFFFFF, however, the inputs are not interpreted as hexadecimal numbers but as a binary, which is coded as an Int32 number and therefore becomes a negative number.

A distinction must be made here between the number representation in hexadecimal notation, which should still be independent of the subsequent coding when defined in the source code, and the binary coding in specific data types, which only takes place later.

So if a user writes 0x90000001 in the source code, he expects to have written the decimal number 2415919105 (see here). Instead, he receive the number -1879048191.

One solution would therefore be to always save hexadecimal values greater than 0x80000000 as Int64.

Example for clarification:

; interpreted as 32 Bit-Int
Global $a = 0x7FFFFFFF
Global $b = 0x80000000

ConsoleWrite("$a: " & $a & " (" & VarGetType($a) & ")" & @CRLF)
ConsoleWrite("$b: " & $b & " (" & VarGetType($b) & ")" & @CRLF)


; interpreted as 64 Bit-Int
Global $a = 0x07FFFFFFF
Global $b = 0x080000000

ConsoleWrite("$a: " & $a & " (" & VarGetType($a) & ")" & @CRLF)
ConsoleWrite("$b: " & $b & " (" & VarGetType($b) & ")" & @CRLF)
#3979 Fixed APIShellExConstants.au3 : missing entry concerning FOLDERID_Desktop cyberyeye@…
Description

For a project I had to use FOLDERID_Documents I was suprised that this variable was missing from : APIShellExConstants.au3

So I have edited : APIShellExConstants.au3 to add below line 623 :

Global Const $FOLDERID_Documents = '{FDD39AD0-238F-46AF-ADB4-6C85480369C7}'

and of course it's works as expected (perfectly without any other modification !)

https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid?redirectedfrom=MSDN

say:

FOLDERID_Documents
GUID 	{FDD39AD0-238F-46AF-ADB4-6C85480369C7}
Display Name 	Documents
Folder Type 	PERUSER
Default Path 	%USERPROFILE%\Documents
CSIDL Equivalents 	CSIDL_MYDOCUMENTS, CSIDL_PERSONAL
Legacy Display Name 	My Documents
Legacy Default Path 	%USERPROFILE%\My Documents

This quick "fix" allow to do, example:

Local $Dst = "C:\Temp\Documents"
_WinAPI_ShellSetKnownFolderPath($FOLDERID_Documents, $Set_Dst, 0, 0)

Is this quick "fix" could being added to the next AutoIT version ? Regards

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