Modify

Opened 6 years ago

Closed 6 years ago

#2706 closed Bug (Fixed)

error in $tagWINDOWINFO

Reported by: anonymous Owned by: Jpm
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 Changed 6 years ago by TicketCleanup

  • Version set to Other

Automatic ticket cleanup.

comment:2 Changed 6 years ago by guinness

Constant is in WinAPISys.au3.

comment:3 Changed 6 years ago by guinness

Constant is in WinAPISys.au3.

comment:4 Changed 6 years ago by Jpm

  • Milestone set to 3.3.11.6
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [10109] in version: 3.3.11.6

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.