Help with console

Just starting out? Need help? Post your questions and find answers here.
loulou2522
Enthusiast
Enthusiast
Posts: 553
Joined: Tue Oct 14, 2014 12:09 pm

Help with console

Post 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
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Help with console

Post 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.
Post Reply