|
|
|||||||
As a newbie to scipting, I wounder if anyone knows how to have a splash screen running at the sametime as the batch file in the background. I have it here were I work, & of course the scriptlogic, but surely one must be able to modify scriptlogic splash screen, or make there own with the batch (dos) login screen. Thanks |
||||||||
|
|
|||||||
You know, with ScriptLogic, you can instruct it to display your own bitmap... If you want to do it without ScriptLogic (KiXtart alone), then perhaps you could use COM and launch IE to display a JPG or GIF or something? |
||||||||
|
|
|||||||
I remember a similar request to this. Just a sec, while I search... Ah, found it. Downside though is, you need to make kixwin.exe available to everyone. I'm not knocking kixwin, just trying to do it without. I'm trying to learn COM, (not very sucessful though) and I thought I'd give that a go. Ran into a few snags. Can't figure out how to get IE in kiosk mode. you know, no menus, no buttons, no status. When the window tries to close itself with the timeout code in the htm file, IE prompts if it's OK. Guess it's time to send out the signal. [ 09 February 2002: Message edited by: LLigetfa ] |
||||||||
|
|
|||||||
OK, so I don't know what I'm saying... Forget kiosk mode, wrong terminology. Maybe this can be achieved within the html document itself. Damn, not any better at html than COM... You know, Jack of all, master of none... |
||||||||
|
|
|||||||
Eh, Super COM Boy... are you going to throw me a hint... or do you take pleasure in my flailing? Using JavaScript, I'd do something like the following between script tags: So, can the same be done with COM? |
||||||||
|
|
|||||||
Super COM boy ? rofl I got something that might make us a good start ... but it's got lots of less-than signs in it ... do you still have that link of Rogier's had for pre-formatting post for HTML forums ? No what I mean ? -Shawn |
||||||||
|
|
|||||||
Shawn, OK, I'll bite. Are you talking about PostPrep because if it is, I don't understand. Damn that Brian anyway, for throwing down the gauntlet like that! |
||||||||
|
|
|||||||
Yeah, postprep, i just didn't feel like handjobbing all the < signs ... Here's a rough start. It's a UDF that displays an IE splash screen complete with title, picture and message ... it floats around during script and goes away at the end ... break on
?"Mapping drives ..." sleep 1 ?"Poking the registry ..." sleep 3 ?"Puring temp internet cache ..." sleep 1 ?"Done!" sleep 1 $Splash.Quit() exit
-Shawn |
||||||||
|
|
|||||||
Like you said... it's a start. Not looking a gift horse in the mouth... just trying to learn. So where are the interface property methods documented? Didn't try this in a logon script, but when run from the desktop on Win2K, focus doesn't change (it's a feature) to the IE window as kixwin does. I know I could kludge it with SetFocus() but would rather not. |
||||||||
|
|
|||||||
Les, The interface methods and properties are on MSDN, here's one link here: In terms of setting focus - you nailed it - the only way I know of is to use kix'x setfocus, suggest putting in a retry counter so one doesn't loop to infinity, right after the make visible in the UDF ...
Something like that anyways ... this COM stuff is kinda fun isn't it ? -Shawn [ 09 February 2002: Message edited by: Shawn ] |
||||||||
|
|
|||||||
I thought this might make for a more professional login splash screen ... break on
dim $ie,$dacontrol,$m,$half,$clr $ie = createobject("internetexplorer.application") $ie.navigate("about:blank") $html = $ie.document.write("$html") $ie.visible = 1 $dacontrol = $ie.document.all("dacontrol") $font = $m.font("Arial", 11, $clr) $pos = $m.mul($m.sin($m.localtime), $m.danumber("0.02")) $dacontrol.image = $txtimg $funkysplash = $ie endfunction -Shawn |
||||||||
|
|
|||||||
Thanks Shawn, I,m a lot humbler and a little wiser now. Yeah this COM stuff is fun and I like extending KiX without having to install custom DLLs. Yeah, I understand that there are external dependencies with COM, but they are the standard stuff that can be easily managed in a corporate environment. Maybe what we should have is a handy index of the interface property methods (or links to) of commonly used objects posted in the COM forum. |
||||||||
|
|
|||||||
Hey, that's a great idea ! I'll see what links I can dig up and post them asap ... the MSDN links are a bit of a moving target because MS is always monkeying with their web sites (don't you hate that?) ... yeah - good idea ! -Shawn |
||||||||
|
|
|||||||
Yeah, damn those changing links... I often try to include the search criteria I used to find something. You know, the "teach a man to fish" concept. That would would work except M$ keeps changing how their search works too! Speaking of search, have you noticed Google now has a Canadianized option? |
||||||||
|
|
|||||||
changing links - i was just "venting" a little bit there - we won't let that stop us from creating a listing of COM link though ... The Canadian google - yeah - i saw that - I wonder what the difference is ? The only thing I could see different was that all the search link titles end with "eh?" -Shawn |
||||||||
|
|
|||||||
Hope it works better than Yahoo.ca's so called Canadian sites search. /rant off ;just in case |
||||||||
|
|
|||||||
You know what - the postprep really works great - im going to use it for going forward forever ... thanks for the link eh ! ... Watching the Olympics ? -Shawn |
||||||||
|
|
|||||||
Yeah, it's a great tool. Not just for those wanting to post code but also for those that rip the code. No more of that copy/paste-to-word/cut/paste thingy. I tried to convince Rogier in the thread A new way of posting to this forum to include a link to PostPrep in Guidelines for the UDF-section but my suggestion died there. |
||||||||
|
|
|||||||
by adding: $ie.fullscreen = 1 before: $ie.menubar = 0 will set the fullscreen property but the width and height coming after will restrict it back to those parameters. It will then be the size you want with no borders. |
||||||||
|
|
|||||||
Is it just me, or has the board changed? I can C&P straight from the visible code and is is formatted! Les said "Maybe what we should have is a handy index of the interface property methods (or links to) of commonly used objects posted in the COM forum." I have a program I linked to on my Downloads page called TLBDOC. It will list the properties, methods, functions etc of a .DLL or .OCX file. It works with SCRRUN.DLL (Windows Scripting Host) and Shawn's cool KiX addons. Shawn may be able to tell you what the DLL must have for this to work. If you look on my Add-ons page you will see an addon called JMail and I have included the .HLP file created by TLBDOC too. cj p.s. Just realised that TLBDOC is not on my site, gimme a few minutes to pop it on the downloads page. |