The bigger Window ID

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Archimede
Posts: 731
Joined: 25 Nov 2021, 09:49
Location: Switzerland / Italy

The bigger Window ID

Post by Archimede » 13 Dec 2024, 06:10

Hallo.
What is the bigger Window ID possible?

User avatar
kunkel321
Posts: 1348
Joined: 30 Nov 2015, 21:19

Re: The bigger Window ID

Post by kunkel321 » 13 Dec 2024, 16:10

What do you mean? Do you want to identify whether a window is maximized?
name := "ste(phen|ve) kunkel"

Archimede
Posts: 731
Joined: 25 Nov 2021, 09:49
Location: Switzerland / Italy

Re: The bigger Window ID

Post by Archimede » 14 Dec 2024, 05:52

I would like to know what is the much big number theoretically possible of a Window ID.

just me
Posts: 9870
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: The bigger Window ID

Post by just me » 14 Dec 2024, 06:33

Is this related to Array with arbitrary index? If so, why do you open a new thread?

User avatar
Seven0528
Posts: 547
Joined: 23 Jan 2023, 04:52
Location: South Korea
Contact:

Re: The bigger Window ID

Post by Seven0528 » 14 Dec 2024, 08:16

 In DllCall and similar functions, hWnd is treated as a Ptr, which means it is processed as an Int on 32-bit systems and an Int64 on 64-bit systems.
From a purely numerical perspective, the range of hWnd values would be as follows:
  • 32-bit: -2147483648 to 2147483647
  • 64-bit: -9223372036854775808 to 9223372036854775807
However, it is important to remember that for handle values like hWnd, only the lower 32 bits are significant or valid.
This is due to interoperability between 32-bit and 64-bit systems.
Re: Gui control hwnds larger than 0x7FFFFFFFFFFFFFFF
  • English is not my native language. Please forgive any awkward expressions.
  • 영어는 제 모국어가 아닙니다. 어색한 표현이 있어도 양해해 주세요.

Post Reply

Return to “Ask for Help (v2)”