Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

network login - create a splash screen

Thread Tools
 
Search this Thread
 
Old 08 November 2007, 01:19 PM
  #1  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default network login - create a splash screen

What's the best way to display a small splash screen when a user logs into the network.

I was wondering if there's any software that can take a jpg or similar and turn it into a stand-alone .exe that displays itself on the user's desktop for say 5 secs?

Any alternative methods would be welcome also ?
Old 08 November 2007, 04:19 PM
  #2  
KiwiGTI
Scooby Regular
 
KiwiGTI's Avatar
 
Join Date: Aug 2004
Posts: 4,631
Likes: 0
Received 0 Likes on 0 Posts
Default

What is your client?

On XP probably relatively easy to write a script that displays a jpg.
Old 08 November 2007, 05:32 PM
  #3  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by KiwiGTI
What is your client?

On XP probably relatively easy to write a script that displays a jpg.
XP SP2 client and Win2k Server

Last edited by spectrum48k; 08 November 2007 at 05:35 PM.
Old 08 November 2007, 07:07 PM
  #4  
phoenixgold
Scooby Regular
iTrader: (2)
 
phoenixgold's Avatar
 
Join Date: Oct 2007
Posts: 348
Likes: 0
Received 0 Likes on 0 Posts
Default

Seem to remember you can apply text based things through active directory/group policy. You could probably use a logon script to display a jpg. Can't remember the policies required, but am sure google will!
Old 08 November 2007, 07:15 PM
  #5  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

ok, I'll look into it.
Old 08 November 2007, 10:36 PM
  #6  
Sonic'
Scooby Regular
 
Sonic''s Avatar
 
Join Date: Dec 2002
Location: Couch Spud
Posts: 9,277
Likes: 0
Received 0 Likes on 0 Posts
Default

KiX maybe able to do something, but it will be after login, as that is when the scripts run

Novell with their client, allowed you to change the Novell bitmap in the logon box to anything else you wanted
Old 08 November 2007, 10:41 PM
  #7  
KiwiGTI
Scooby Regular
 
KiwiGTI's Avatar
 
Join Date: Aug 2004
Posts: 4,631
Likes: 0
Received 0 Likes on 0 Posts
Default

Copy the following text and save it in a file called splash.hta

<html>

<head>
<title>Splash Screen</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="splash"
BORDER="none"
CAPTION="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
SCROLL="no"
WINDOWSTATE="normal"
</head>

<SCRIPT LANGUAGE="VBScript">

Sub Window_OnLoad
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub

Sub ShowSplash
Splash.Style.Display = "None"
Window.Close()
End Sub

</SCRIPT>

<body bgcolor="black">

<DIV id="Splash">

<CENTER>
<p>
<img src="C:\Windows\winnt256.bmp"/>
</p>
</CENTER>
</DIV>


</body>
</html>
Change the following :

img src = where your image is located.
WINDOWSTATE = normal for default, or maximise for full screen.
iTimerID has 5000, this is how long in millisecond you want it to display.
body bgcolor can be changed to suit your image.

It's an HTA file, which is HTML application. So it runs a mix of HTML and VBS. Basically you can create whatever you want with them.

Just make sure that image file is accessible and then call this from a logon script. Depending on the size of your splash screen it could go on SYSVOL or be kept locally.

Trending Topics

Old 08 November 2007, 10:51 PM
  #8  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

ooh, nice. Will give it a try.

So this will run happily on Windows 2000 Server ?
Old 08 November 2007, 10:54 PM
  #9  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Well I never, it bloomin works. Looks great!

Thanks KiwiGTI!! Good work fella

Is there any way to change the window dimensions to match the image ?

Ignore last comment - just found an example .hta with window dimensions I can change to suit.

Last edited by spectrum48k; 08 November 2007 at 11:17 PM.
Old 08 November 2007, 11:40 PM
  #10  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

can't seem to get the window to size at all. I'm using Firefox 2.0 and IE7

<html>

<head>
<title>Splash Screen</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="splash"
BORDER="none"
INNERBORDER="no"
CAPTION="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
SCROLL="no"
WINDOWSTATE="normal"

<script language="javascript">

//Define the splash window size.
var splashWindowWidth = 200;
var splashWindowHeight = 100;

//Calculate the splash window location.
splashWindowLeft = (window.screen.availWidth - splashWindowWidth) / 2;
splashWindowTop = (window.screen.availHeight - splashWindowHeight) / 2;

//Center the splash window on the screen.
window.moveTo(splashWindowLeft, splashWindowTop);
window.resizeTo(splashWindowWidth, splashWindowHeight);

//called on the body's onLoad() event
function nextScreen()
{
//var oShell = new ActiveXObject("WScript.Shell");
//oShell.Run("autorun.exe");
self.close();
}

</script>

</head>


<SCRIPT LANGUAGE="VBScript">

Sub Window_OnLoad
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub

Sub ShowSplash
Splash.Style.Display = "None"
Window.Close()
End Sub

</SCRIPT>

<body bgcolor="black">

<DIV id="Splash">

<CENTER>
<p>
<img src="C:\splash.gif"/>
</p>
</CENTER>

</DIV>

</body>
</html>

Last edited by spectrum48k; 08 November 2007 at 11:51 PM.
Old 09 November 2007, 09:30 AM
  #11  
KiwiGTI
Scooby Regular
 
KiwiGTI's Avatar
 
Join Date: Aug 2004
Posts: 4,631
Likes: 0
Received 0 Likes on 0 Posts
Default

Try substituting this section.
Sub Window_Onload
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_DesktopMonitor")
For Each objItem in colItems
intHorizontal = objItem.ScreenWidth
intVertical = objItem.ScreenHeight
Next
intLeft = (intHorizontal - 800) / 2
intTop = (intVertical - 600) / 2
window.resizeTo 800,600
window.moveTo intLeft, intTop
iTimerID = window.setInterval("ShowSplash", 5000)
End Sub
Change as necessary

Last edited by KiwiGTI; 09 November 2007 at 09:45 AM.
Old 09 November 2007, 12:19 PM
  #12  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Thanks Kiwi

I'm getting a problem testing from my WinXP desktop but I think there's code in there that's probably server specific, so I'll try it on the Win2kserver later on - besides, you've shown me what I need, and I've now got the building blocks to do what I need.

Thanks again.
Old 02 December 2011, 03:03 PM
  #13  
jbarbieri
Scooby Newbie
 
jbarbieri's Avatar
 
Join Date: Dec 2011
Location: NJ
Posts: 1
Likes: 0
Received 0 Likes on 0 Posts
Default splash.hta

I'm a bit confused regarding the splash.gif and where to put it. You said to name it "splash.hta" but how does this fit into the logon script?
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
JTaylor
Non Scooby Related
202
25 December 2016 09:14 AM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
greg320
Non Car Related Items For sale
6
11 October 2015 11:44 AM



Quick Reply: network login - create a splash screen



All times are GMT +1. The time now is 03:52 AM.