Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
hide and unhide
Junkone
3/15/2008 2:37:00 AM
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.
1 Answer
Siep Korteling
3/15/2008 12:22:00 PM
0
Junkone wrote:
> 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...
)
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
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
hide and unhide
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password