Page 1 of 1

Help with console

Posted: Sun Oct 13, 2024 4:36 pm
by loulou2522
Hi all,
I want to hide a console during execution of a running programm and after ending display again the same console . Is-it possible ?
Thanks

Re: Help with console

Posted: Sun Oct 13, 2024 5:03 pm
by infratec

Code: Select all

Import "user32.lib"
  GetConsoleWindow()
EndImport

If OpenConsole()
  Console = GetConsoleWindow()
  Delay(1000)
  ShowWindow_(Console, #SW_HIDE)
  Delay(1000)
  ShowWindow_(Console, #SW_SHOW)
  Delay(1000)
EndIf
If you have more then one console open, you need FindWindow_() and a window/console title.