Hiding default console window


#1

I wrote simple Ruby console program that reads file, modifies it in way
that’s not important now, and saves it back. It’s called by other
program few hundred times, and every time console winodw appears, what
disturbs normal working. Is it possible to hide that window (or at least
make it to not be focused) without libs like GTK/Tk?

I already tried googling, but everytime I search “ruby windows”, it
gives libs or installers for Windows :confused:


#2

2008/10/18 – -- removed_email_address@domain.invalid:

I wrote simple Ruby console program that reads file, modifies it in way
that’s not important now, and saves it back. It’s called by other
program few hundred times, and every time console winodw appears, what
disturbs normal working. Is it possible to hide that window (or at least
make it to not be focused) without libs like GTK/Tk?

I already tried googling, but everytime I search “ruby windows”, it
gives libs or installers for Windows :confused:
You should use rubyw.exe in that case.

Refer to http://www.ruby-doc.org/docs/ProgrammingRuby/html/win32.html#S2

Regards,

Park H.


#3

Thank you!


#4

Heesob P. wrote:

Refer to http://www.ruby-doc.org/docs/ProgrammingRuby/html/win32.html#S2

Regards,

Park H.

and if you’re using the 1-click ruby, then .rbw is already associated
with rubyw.exe.