Custom Query (3933 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (436 - 438 of 3933)

Ticket Resolution Summary Owner Reporter
#3237 Fixed _EventLog__Read has an error in the __EventLog_DecodeDesc Function, Insertions replace unintended variables after %1- %9 Jon BILGUS
Description

EventLog_DecodeDesc uses string replace on Insertion place holders returned from _WinAPI_FormatMessage ex. %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12 However every instance is replaced therefore The data in %1 is also replaced in %10, %11, %12, %13 etc the data in %2 is replaced in %20 %21 etc.

For instance if %1 contains Foo %10 becomes Foo0 %11 becomes Foo1 %12 becomes Foo2

The fix is to change $sDesc = StringReplace($sDesc, "%" & $iI, $aStrings[$iI]) to $sDesc = StringReplace($sDesc, "%" & $iI, $aStrings[$iI],1)

Func EventLog_DecodeDesc($tEventLog)

Local $aStrings = EventLog_DecodeStrings($tEventLog) Local $sSource = EventLog_DecodeSource($tEventLog) Local $iEventID = DllStructGetData($tEventLog, "EventID") Local $sKey = "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\" & $g_sSourceName_Event & "\" & $sSource

Local $aMsgDLL = StringSplit(_WinAPI_ExpandEnvironmentStrings(RegRead($sKey, "EventMessageFile")), ";")

Local $iFlags = BitOR($EVENTLOG_FORMAT_MESSAGE_FROM_HMODULE, $EVENTLOG_FORMAT_MESSAGE_IGNORE_INSERTS) Local $sDesc = "" For $iI = 1 To $aMsgDLL[0]

Local $hDLL = _WinAPI_LoadLibraryEx($aMsgDLL[$iI], $EVENTLOG_LOAD_LIBRARY_AS_DATAFILE) If $hDLL = 0 Then ContinueLoop Local $tBuffer = DllStructCreate("wchar Text[4096]") _WinAPI_FormatMessage($iFlags, $hDLL, $iEventID, 0, $tBuffer, 4096, 0) _WinAPI_FreeLibrary($hDLL) $sDesc &= DllStructGetData($tBuffer, "Text")

Next

If $sDesc = "" Then

For $iI = 1 To $aStrings[0]

$sDesc &= $aStrings[$iI]

Next

Else

For $iI = 1 To $aStrings[0]

$sDesc = StringReplace($sDesc, "%" & $iI, $aStrings[$iI],1);<<<<<<<<<HERE Added as 1st occurrence Bilgus 5-20-2016

Next

EndIf

Return StringStripWS($sDesc, $STR_STRIPLEADING + $STR_STRIPTRAILING)

EndFunc ;==>EventLog_DecodeDesc

#3238 Fixed Au3info doesn't compensate for DPI scaling Jon anonymous
Description

I'm using Windows 10 on a laptop with a 1920x1080 screen with standard drivers. I sit a few feet away from the laptop, so I use DPI scaling to help me see the screen easier (Settings > System > Display > "Change the size of text, apps, and other items:"). Mine is currently set to 125%.

At this 125% DPI scaling setting (or anything greater than 100%), open the 'AutoIt v3 Window Info' program, turn on the option to magnify (Ctrl + Alt+ M), grab the finder tool, and point the target at some discernible object on your screen. Unless my system is somehow unique, or off the norm, you also will not see what you're pointing at in the small magnification window. If you move the target down and to the right some, you'll stumble onto what you were originally aiming for.

This is a DPI issue with AutoIt. Please fix it.

I believe this is also why PixelGetColor does not work properly under the same circumstances (a DPI scaling setting of over 100%).

Thank you for your attention.

#3255 Works For Me Drag & Drop not working when Windows DPI setting is above 100% Jon antonis@…
Description

I've noticed that drag & drop in AutoIt GUI doesn't work when Windows DPI is set higher than the default 100%. I got a new monitor and I'm using it at 150% since the resolution is very high. When trying to drag & drop using scripts that I know work it just doesn't do anything. If I change the setting to 100% it works as normal.

Test code:

#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #NoTrayIcon

Opt("GUIOnEventMode", 1)

Global $MainGUI

GUICreation()

While 1

Sleep(1000)

WEnd

Func GUICreation()

$MainGUI = GUICreate("Test", 500, 100, Default, Default, "", $WS_EX_ACCEPTFILES) $TestInput = GUICtrlCreateInput("", 80, 10, 348, 20) GUICtrlSetState($TestInput, $GUI_DROPACCEPTED) $Exit = GUICtrlCreateButton("Exit", 220, 40, 60, 25) GUICtrlSetOnEvent($Exit, "Quit") GUISetState(@SW_SHOW)

EndFunc ;==>GUICreation

Func Quit()

GUIDelete($MainGUI) Exit

EndFunc ;==>Quit

Try this code with your monitor set to 100% and try dragging & dropping a file in the Input, it's location should populate the Input, then set it to something higher like 125% or 150% and try dragging & dropping a file again to reproduce the issue.

The setting is in Display Settings, under "Customize your display" and says "Change the size of text, apps, and other items"

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