Author Topic: Want to use qb64 as a gui interface, need a way to know _dontwait shell finishes  (Read 5581 times)

0 Members and 1 Guest are viewing this topic.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
DO
‘The handle call to FindWindow
LOOP until handle <> 0 ‘wait for the handle to be created

DO
‘The handle call to FindWindow
LOOP until handle = 0 ‘the handle should disappear when terminated
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
@Steve: I've used that method, too. I like to add an escape, so the program can never get caught in an infinite loop. For web crawling, I used a short delay inside the loop, and a counter to keep track of ow many times the delay was used. At some point, I gave it instructions to "time out."

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Another nudge bonus:

By getting the Window handle number it is possible to move and ETC....
Using "cmdow" a very powerful windows program to do many things with the window (up/down/left/right/hide).
Only downside is CMDOW needs the window handle in HEX format.  Which is only a small problem in QB64.