Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_WINDOWHANDLE
#3
Are you sure the _Delay is necessary in newer versions of QB64-PE? I briefly tested it and it doesn't appear to be, and it really shouldn't be after changes I made in 3.5.0 QB64-PE version. Before 3.5.0 there is a race that would cause it to be zero at the beginning of the program.

The `_WINDOWHANDLE` is not related to the `SCREEN`, changing the `SCREEN` does not change the `_WINDOWHANDLE`. In `3.13.0` this prints a non-zero value on start-up and the same value for all three prints:

Code: (Select All)
Print _WindowHandle
Sleep

Screen _NewImage(640, 480, 32)
_delay 1
Print _WindowHandle
Sleep

Screen 0
_delay 1
Print _WindowHandle

I don't think there are any commands that would make the window handle change, but I'd be curious to know what your program is doing before the `SCREEN`, and also what you're using the `_WINDOWHANDLE` for.
Reply


Messages In This Thread
_WINDOWHANDLE - by TerryRitchie - 06-05-2024, 09:57 PM
RE: _WINDOWHANDLE - by SMcNeill - 06-05-2024, 10:11 PM
RE: _WINDOWHANDLE - by DSMan195276 - 06-05-2024, 10:26 PM
RE: _WINDOWHANDLE - by TerryRitchie - 06-05-2024, 11:21 PM
RE: _WINDOWHANDLE - by SMcNeill - 06-05-2024, 11:33 PM
RE: _WINDOWHANDLE - by DSMan195276 - 06-05-2024, 11:41 PM
RE: _WINDOWHANDLE - by TerryRitchie - 06-06-2024, 12:42 AM
RE: _WINDOWHANDLE - by DSMan195276 - 06-06-2024, 01:44 AM
RE: _WINDOWHANDLE - by TerryRitchie - 06-06-2024, 06:04 AM



Users browsing this thread: 1 Guest(s)