Incognito
(Getting the hang of it)
2004-10-11 08:00 PM
IE COM Splash

Does anybody have a splash/progress screen written using only IE COM? I am intrested in learning on how to display bitmaps and user login information through a COM object but I don't see a lot of examples out there.

Thanks in advance.


Les
(KiX Master)
2004-10-11 08:12 PM
Re: IE COM Splash

I have seen lots of examples. Try refining your search.

Incognito
(Getting the hang of it)
2004-10-11 08:22 PM
Re: IE COM Splash

I have searched under the scripts and COM section without finding anything that specifically matches what I'm looking for - A COM login that I can step through to learn the logic.

I have tried looking for COM SPLASH, COM PROGRESS, COM LOGIN.

Nothing really jumping out at me.



LonkeroAdministrator
(KiX Master Guru)
2004-10-11 08:35 PM
Re: IE COM Splash

well, com and logon have nothing to do with each other.
you can combine them but if you looked for script that is written for you, well...
you know the odds for that.


Chris S.
(MM club member)
2004-10-11 09:03 PM
Re: IE COM Splash

Any objections to using a custom COM application that can display all of the above and more? You can use KiXforms to do all of that. I have a sample logon script that can help you get started if you're interested.

Incognito
(Getting the hang of it)
2004-10-11 10:20 PM
Re: IE COM Splash

I appreciate the offer Chris, but I am trying to get off of using kixforms for my current script since there is a possibility that a user will have insufficient rights to regsvr32 the dll.

I thought that using an IE COM object to display the company LOGO and a few items like USERNAME & Time, etc. while the script ran would eliminate the need to register the forms for login.

But I'm a complete novice with COM and think the best way to get a handle on it would be to take a look at a similar script.

Thanks for the offer though.


LonkeroAdministrator
(KiX Master Guru)
2004-10-11 10:39 PM
Re: IE COM Splash

hmm...
my memory says there could be some IE logonscripts... couldn't find one myself either quickly.

what comes to installing kf, at least previously we were able to produce some manual registering (withour regsvr32 but with direct registry write to HKCU) that made it possible to run in current user environment.


Incognito
(Getting the hang of it)
2004-10-11 11:53 PM
Re: IE COM Splash

I have a combo of NT4, 2k & XP stations. I was thinking of running a utility such as "RUNAS" or "CPAU" to run the regsvr32 command as a Power user but it may be a security issue and a pain in the ass to have everything hinge on one user account.

We have had problems with users from remote offices not getting the DLL registered properly. I'm getting pressure from my peers to revert back to the canned DOS progress indicator, but I think that's a bit extreme. I have to come up with a solid method of getting Kixforms to work properly or get a IE COM repacement otherwise the simplicity critics will have us running an ugly ass DOS screen.

Welcome to the 80's.



Sealeopard
(KiX Master)
2004-10-12 12:25 AM
Re: IE COM Splash

Remote deployment/registration of KiXforms would work. All necessary tools are in the UDF Forum.

Cybex
(Getting the hang of it)
2004-10-12 04:01 AM
Re: IE COM Splash

I had this one collecting dust in my vualt of findings... Is this close to what you are looking for???

Code:
Break on 

SetConsole("hide")

$Splash = Splash("%windir%\system32\picture.jpg","COMPANY LOGON" )
Sleep 8
$Splash.Quit()
$Splash = 0
;Exit

Function Splash($picture)
Dim $ie
$ie = CreateObject("internetexplorer.application")
$ie.fullscreen = 1
$ie.menubar = 0
$ie.statusbar = 0
$ie.toolbar = 0
$ie.width = 1024
$ie.height = 768
$ie.navigate("about:blank")
While $ie.busy AND $ie.readystate <> 4 AND @error = 0 Loop
$html="
<html>
<head>
<title>$title</title>
</head><P><BR>;&nbsp<br></P>
<body scroll=no bgcolor=#000000><center>
<img src='$picture'>
</center>
</body>
</html>
"
$ie.document.write($html)
$ie.visible = 1
$Splash = $ie
EndFunction



ShaneEP
(MM club member)
2004-10-12 05:15 AM
Re: IE COM Splash

Nice script Cybex. Just had to make one change to make it work here. The Function line was missing the $title parameter.

so i changed the following line...
Function Splash($picture)
to
Function Splash($picture, $title)

also just for the sake of novarsinstrings, changed...
<img src='$picture'>
to
<img src='"+$picture+"'>


LonkeroAdministrator
(KiX Master Guru)
2004-10-25 01:01 AM
Re: IE COM Splash

well...
the bars don't need to be set either.
when scripting the IE, saying fullscreen hides them all.
and there is no close button either.


Pa_Callender
(Lurker)
2005-09-14 11:07 PM
Re: IE COM Splash

Could'nt you just use this (have not tried but read it on JS Kit)
Code:

function SplashImg($imgURL,$title,$time,$width,$height)
$ie = CreateObject("InternetExplorer.Application")
$html = "<html><head><title>"+$title+"</title></head><body><img src="+chr(34)+$imgURL+chr(34)+" width="+$width+" height="+$height+"></body></html>"
$oPopup = $ie.window.CreatePopup()
$oPopupBody = $oPopup.document.body
$oPopupBody.innerHTML = $html
$oPopup.show(0,0,$width,$height,document.body)
sleep $time
$oPopup.window.close()
EndFunction
SplashImg("http://www.example.com/splash.gif","Example.com Login Script",10,300,400)