Page 1 of 1 1
Topic Options
#127703 - 2004-10-11 08:00 PM IE COM Splash
Incognito Offline
Getting the hang of it

Registered: 2001-07-09
Posts: 66
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.

Top
#127704 - 2004-10-11 08:12 PM Re: IE COM Splash
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I have seen lots of examples. Try refining your search.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#127705 - 2004-10-11 08:22 PM Re: IE COM Splash
Incognito Offline
Getting the hang of it

Registered: 2001-07-09
Posts: 66
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.


Top
#127706 - 2004-10-11 08:35 PM Re: IE COM Splash
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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.
_________________________
!

download KiXnet

Top
#127707 - 2004-10-11 09:03 PM Re: IE COM Splash
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
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.
Top
#127708 - 2004-10-11 10:20 PM Re: IE COM Splash
Incognito Offline
Getting the hang of it

Registered: 2001-07-09
Posts: 66
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.

Top
#127709 - 2004-10-11 10:39 PM Re: IE COM Splash
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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.
_________________________
!

download KiXnet

Top
#127710 - 2004-10-11 11:53 PM Re: IE COM Splash
Incognito Offline
Getting the hang of it

Registered: 2001-07-09
Posts: 66
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.


Top
#127711 - 2004-10-12 12:25 AM Re: IE COM Splash
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Remote deployment/registration of KiXforms would work. All necessary tools are in the UDF Forum.
_________________________
There are two types of vessels, submarines and targets.

Top
#127712 - 2004-10-12 04:01 AM Re: IE COM Splash
Cybex Offline
Getting the hang of it
*****

Registered: 2004-07-21
Posts: 81
Loc: Brandon, FL.
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



Edited by Cybex (2004-10-12 04:13 AM)
_________________________
Common sense isn't so common.

Top
#127713 - 2004-10-12 05:15 AM Re: IE COM Splash
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
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+"'>

Top
#127714 - 2004-10-25 01:01 AM Re: IE COM Splash
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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.
_________________________
!

download KiXnet

Top
#127715 - 2005-09-14 11:07 PM Re: IE COM Splash
Pa_Callender Offline
Lurker

Registered: 2005-09-14
Posts: 1
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)

_________________________
[quote]If you can't blind people with your wisdom, deafen them with your gibberish. [/quote]

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.102 seconds in which 0.043 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org