Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (172 - 174 of 3866)

Ticket Resolution Summary Owner Reporter
#3766 Duplicate @IncludeScriptFullPath and @IncludeScriptName argumentum
Description

@ScriptLineNumber knows the #include.

I can write Func this($var = @ScriptLineNumber) and it knows, just knows, now, somewhere ( in AutoIt ) is kept\noted. Therefore these macros, call them @IncludeScriptFullPath and @IncludeScriptName, would be complementary to @ScriptLineNumber.

I added a discussion at https://www.autoitscript.com/forum/topic/203009-scriptlinenumber-knows-the-include/ for a full explanation of the idea.

#3765 Fixed _FileWriteLog Jpm RedZone
Description

$iFlag value does not work when $sLogPath = a file handle returned from FileOpen().

It appears that FileOpen()$mode=1$FO_APPEND (1) = Write mode (append to end of file) overrides _FileWriteLog $iFlag value.

In reference to this post

_FileWriteLog help file link FileOpen help file link

Example:

#include <File.au3>
$hTest = fileopen("C:\temp\test.log", 1)
$sTestPath = "C:\temp\test.log"
;Test with handle
_FileWriteLog($hTest, "First Message")
_FileWriteLog($hTest, "Message at the End", -1)
_FileWriteLog($hTest, "Message at the Top", 1)
ShellExecute($sTestPath)
FileClose($hTest)

Result: 2020-06-07 10:54:16 : First Message 2020-06-07 10:54:16 : Message at the End 2020-06-07 10:54:16 : Message at the Top

#include <File.au3>
$hTest = fileopen("C:\temp\test.log", 1)
$sTestPath = "C:\temp\test.log"
;Test with handle
_FileWriteLog($sTestPath, "First Message")
_FileWriteLog($sTestPath, "Message at the End", -1)
_FileWriteLog($sTestPath, "Message at the Top", 1)
ShellExecute($sTestPath)
FileClose($hTest)

Result: 2020-06-07 10:55:58 : Message at the Top 2020-06-07 10:55:58 : First Message 2020-06-07 10:55:58 : Message at the End

#3764 Fixed ConsoleWrite binary mode Jon divinity76@…
Description

ConsoleRead has a binary mode, so it seems fitting that ConsoleWrite should have a binary mode as well. for backwards-compatibility it should be off-by-default and optional, i suggest changing it to

ConsoleWrite ( "data" [, binary = False] )

here is test code to see how ConsoleWrite currently handles binary data:

$test="";
for $i = 0 To 255
   $test = $test & Chr($i);
Next
ConsoleWrite($test);
Note: See TracQuery for help on using queries.