hide and unhide

J

Junkone

is there a way i can hide or unhide a window on the computer. let us
say i am running Internet explorer browsing software and i want to
hide it or unhide it for some reason usng ruby commands. is it
possible.
 
S

Siep Korteling

Junkone said:
is there a way i can hide or unhide a window on the computer. let us
say i am running Internet explorer browsing software and i want to
hide it or unhide it for some reason usng ruby commands. is it
possible.

I only know how to do it on windows with Internet Explorer:

require 'win32ole'
ie = WIN32OLE::new('InternetExplorer.Application')
ie.navigate("http://www.google.com")
print "retrieving "
while ie.readystate == 1
#iexplore not visible while loading page
sleep 1
print "."
end
ie.visible = true
sleep 2
ie.visible = false
sleep 2
ie.visible = true
sleep 1
ie.quit

Regards,

Siep
 

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

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,191
Latest member
BuyKetoBeez

Latest Threads

Top