Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When did CONSOLE break?
#1
https://qb64phoenix.com/qb64wiki/index.php/$CONSOLE

Example 1:

Code: (Select All)
$Console
_Delay 4

_Console Off
_Delay 4
_Console On

_Dest _Console
Print "Close this console window or click main window and press a key!"

_CONSOLE OFF does not hide the console in bird edition. Needless to say no idea if _CONSOLE ON would toggle it back on. It all works in 2.1.

Tested Win11 only.
Reply
#2
I think it's just an IDE thing, it now runs console programs using `cmd /c`, that's probably a bug since Windows will launch you a console anyway (and when the program attaches to an existing console it can't hide it). The `cmd /c` is still necessary to make the logging cmd appear but that's only necessary if you have 'display logging' turned on.

Regardless, if you run the program directly from explorer then it should work as expected with the console window hiding, so the program itself is fine.
Reply
#3
Yep that was it, you da (ds)man.
Reply




Users browsing this thread: 1 Guest(s)