Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (76 - 78 of 3868)

Ticket Resolution Summary Owner Reporter
#251 Fixed GUIRegisterMsg return bug regression Jon Saunders <admin@…>
Description

The example script should be enough, but just to be clear, it appears that a function that returns inside a function that's been registered (via GUIRegisterMsg) makes the registered function ignore the internal message handler. A simple workaround is to Return $GUI_RUNDEFMSG regardless, but it worked fine back in 3.2.11.5 and bugs in 3.2.11.9 (I don't have any versions in between for testing, sorry), I'm putting down the latest version simply because the bug is still present. This may be a duplicate of #222, but I'm not sure.

#include <GUIConstants.au3>
#include <WindowsConstants.au3>

Opt('GUIResizeMode', $GUI_DOCKBORDERS)
$gui = GUICreate(@AutoItVersion, 200, 200, Default, Default, $WS_OVERLAPPEDWINDOW)
GUICtrlCreateEdit('Control should size with window... but it does not.', 0, 0, 200, 200)
GUISetState()

GUIRegisterMsg($WM_SIZE, 'WM_SIZE')

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE


Func WM_SIZE()
	Test()
	;~ Return $GUI_RUNDEFMSG ; Should not be required, but if you uncomment everything works fine.
EndFunc

Func Test()
	Return 1
EndFunc
#252 Fixed Control focus changing when window loses/regains focus Jon Saunders <admin@…>
Description

This bug appears to have been introduced in 3.2.11.10. Steps to reproduce:

  1. Run script, notice the ToolTip which constantly displays the focused window control.
  2. Manually place focus in the edit control (click the mouse in the field).
  3. Alt+Tab, or otherwise change the system focus to another window.
  4. Return to the script's window.
  5. The window's focus has changed to the label (Static1). With AutoIt 3.2.11.9, the focus correctly stays on the Edit control (Edit1).
Global Const $WS_CHILD = 0x40000000
Global Const $GUI_EVENT_CLOSE = -3

$guiP = GUICreate(@AutoItVersion, 200, 200)
GUICtrlCreateLabel('Label (Static1)', 0, 0, 200, 20)
GUISetState()

$guiC = GUICreate('', 200, 180, 0, 20, $WS_CHILD, Default, $guiP)
GUICtrlCreateEdit('Edit (Edit1)', 0, 0, 200, 180)
GUISetState()

While 1
	ToolTip(ControlGetFocus($guiP))
	$gm = GUIGetMsg()
	If $gm = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
#254 Fixed GUIGetCursorInfo does not return the correct primary/secondary down info Jon paulpmeier
Description

Hello Jon,

i have no permission to reopen a fixed bug report, so i open a new.

I runned this script with AutoIt 3.2.12.0-rc1. The mouse buttons are swapped in the control panel.

If only one button is pressed down GUIGetCursorInfo() returns 1 for BOTH buttons.

Dim $CursorInfo[5]
$MouseButtonsSwapped = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")

$hWnd = GUICreate("Press a mouse button", 320, 90)
$hLblSwapped = GUICtrlCreateLabel("Mouse buttons swapped: " & $MouseButtonsSwapped, 10, 10, 200, 20)
$hLblPrimary = GUICtrlCreateLabel("Primary down: ", 10, 40, 200, 20)
$hLblSecundary = GUICtrlCreateLabel("Secondary down: ", 10, 60, 200, 20)
GUISetState(@SW_SHOW)

While GUIGetMsg() <> -3
	$MouseButtonsSwapped = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")
	GUICtrlSetData($hLblSwapped, "Mouse buttons swapped: " & $MouseButtonsSwapped)
	$CursorInfo = GUIGetCursorInfo($hWnd)
	GUICtrlSetData($hLblPrimary, "Primary down: " & $CursorInfo[2])
	GUICtrlSetData($hLblSecundary, "Secondary down: " & $CursorInfo[3])
	Sleep(50)
WEnd

What do i wrong?

Paul

Note: See TracQuery for help on using queries.