Modify

Opened 12 years ago

Closed 12 years ago

#2706 closed Bug (Fixed)

error in $tagWINDOWINFO

Reported by: anonymous Owned by: J-Paul Mesnage
Milestone: 3.3.11.6 Component: AutoIt
Version: Other Severity: None
Keywords: Cc:

Description

didn't find in bugtracker... so - error in:

Global Const $tagWINDOWINFO = 'dword Size;dword rWindow[4];dword rClient[4];dword Style;dword ExStyle;dword WindowStatus;uint cxWindowBorders;uint cyWindowBorders;ushort atomWindowType;ushort CreatorVersion;'

rWindow & rClient must be not dword, but long. see :
http://msdn.microsoft.com/en-us/library/windows/desktop/dd162897(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632610(v=vs.85).aspx

Left и Top must be -8 & -8, and not 4294967288 и 4294967288

#include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global $hWnd = WinGetHandle('[Title:WinAPIEx UDF Help; Class:HH Parent]')
If Not $hWnd Then Exit 13
If Not BitAND(WinGetState($hWnd), 32) Then WinSetState($hWnd, '', @SW_MAXIMIZE)
Global $tWINDOWINFO = _WinAPI_GetWindowInfo($hWnd)
Global $aSize = WinGetPos($hWnd)

ConsoleWrite('Left:   ' & $aSize[0] & @LF)
ConsoleWrite('Top:    ' & $aSize[1] & @LF)
ConsoleWrite('---' & @LF)
ConsoleWrite('Left:   ' & DllStructGetData($tWINDOWINFO, 'rWindow', 1) & @CR)
ConsoleWrite('Top:    ' & DllStructGetData($tWINDOWINFO, 'rWindow', 2) & @CR)
ConsoleWrite('Right:  ' & DllStructGetData($tWINDOWINFO, 'rWindow', 3) & @CR)
ConsoleWrite('Bottom: ' & DllStructGetData($tWINDOWINFO, 'rWindow', 4) & @CR)

Attachments (0)

Change History (4)

comment:1 by TicketCleanup, 12 years ago

Version: Other

Automatic ticket cleanup.

comment:2 by guinness, 12 years ago

Constant is in WinAPISys.au3.

comment:3 by guinness, 12 years ago

Constant is in WinAPISys.au3.

comment:4 by J-Paul Mesnage, 12 years ago

Milestone: 3.3.11.6
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed by revision [10109] in version: 3.3.11.6

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.