Friends, as internet explorer (IE) is active and currently web page
http://www.google.com is opened in IE. Now when I refresh the web page then it should show the
msgbox- now the webpage is fully loaded after getting the webpage fully loaded. For this I tried to use these codes-
Code: Select all
F1::
webpage = http://www.google .com
ie := ComObjcreate("internetexplorer.application")
ie.navigate(webpage)
while ie.busy
sleep 100
else
msgbox, now the webpage is fully loaded!!!!!!
Return
The codes are working fine. But there is one problem in these codes, is that- they start a new instance of internet explorer in 'process'. See below screen shot-
Every time when i run these codes it starts new instance of Internet Explorer in background (i.e. in process).
To overcome this problem I tried to use
comobjactive in stead of
comobjcreate. See these codes-
Code: Select all
F1::
webpage = http://www.google .com
ie := ComObjactive("internetexplorer.application")
ie.navigate(webpage)
while ie.busy
sleep 100
else
msgbox, now the webpage is fully loaded!!!!!!
Return
But these codes are not working at all. When I run these codes it shows the error
operation unavailable. I do not see why this is happening as far as i know this error occurs when the window of internet explorer does not exist. But this is showing this error msg even the internet explorer's window is active. See this screen shot-
PLEASE HELP ME...
THANKS A LOT....