Hiding default console window

?

-- --

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 :/
 
H

Heesob Park

2008/10/18 -- -- said:
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 :/
You should use rubyw.exe in that case.

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

Regards,

Park Heesob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top