Opened 10 years ago

Closed 10 years ago

#2706 closed Bug (Fixed)

error in $tagWINDOWINFO

Reported by: anonymous Owned by: Jpm
Milestone: Component: AutoIt
Version: Other Severity: None
Keywords: Cc:


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 :

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 10 years ago by TicketCleanup

  • Version set to Other

Automatic ticket cleanup.

comment:2 Changed 10 years ago by guinness

Constant is in WinAPISys.au3.

comment:3 Changed 10 years ago by guinness

Constant is in WinAPISys.au3.

comment:4 Changed 10 years ago by Jpm

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

Fixed by revision [10109] in version:

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

as closed The owner will remain Jpm.

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

Note: See TracTickets for help on using tickets.