QB64Team/qb64

_WINDOWHANDLE returns 0 in v2.0

Closed this issue · 3 comments

QB64 info (please complete the following information):

  • QB64 v2.0 stable (07b2101) and latest dev build
  • Windows 10 21H1

Describe the bug
_WINDOWHANDLE has no value in v2.0 but functions as expected in v1.5

To Reproduce
Steps to reproduce the behavior:

  1. PRINT _WINDOWHANDLE

Expected behavior
_WINDOWHANDLE value above 0

Things have changed a bit behind the scenes and _windowHandle requires fraction of time more to work. Add this to the top of your program until a patch comes up:

Do Until _ScreenExists: _Loop

Many thanks. I was looking into an "Always on top" solution (https://www.qb64.org/forum/index.php?topic=1365.msg105588#msg105588), which now works again with that additional line. I think there is some conflict with that and InForm, but that's another topic.

Thank you.

Will hopefully get fixed when 56aa5e7 is merged.