Page 1 of 1 1
Topic Options
#43126 - 2003-07-21 04:28 PM Please wait while your logon script executes
James Murdoch Offline
Fresh Scripter

Registered: 2001-12-17
Posts: 20
Loc: Houston Tx.
Per the documentation for Kix v420, the breal off (default) should hide the "Please wait" message box but I see this in Win98 and it can be cancelled and a client is in fact logged on without being subject to the kixtart script security checks.

How can I tried using autoit, but that seems to launch a child process and not hide the parent process's window.

Any ideas?

Top
#43127 - 2003-07-21 08:36 PM Re: Please wait while your logon script executes
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
You can use the AutoItX COM-method: WinHide

Insert this code somewhere in your logon script.
code:
If @InWin = 2
$oAutoIt = CreateObject("AutoItX.Control")
If Not $oAutoIt
Copy @LServer + '\NetLogon\AutoItX.dll' %WinDir% + '\System'
Run 'RegSvr32 /S %WinDir%\System\AutoItX.dll'
EndIf
If $oAutoIt
$oAutoIt.WinHide("Windows NT","")
EndIf
EndIf

This ofcourse requires that you copy AutoItX.dll to the root of your logon share

-Erik

Top
#43128 - 2003-07-22 03:21 PM Re: Please wait while your logon script executes
James Murdoch Offline
Fresh Scripter

Registered: 2001-12-17
Posts: 20
Loc: Houston Tx.
This looks really great, but where can I get (or how can I make), an AutoItX.dll? I looked all in the autoit installed folder and on the \\www.hidensoft.com website, but no luck.

Also, could I just run this from netlogon:
run 'RegSvr32 /S %0\..\autoitx.dll

And wouldn't I use:
$oAutoIt.WinHide("Windows","")
since I am planning to shut them down anyway.

Thanks, James

Top
#43129 - 2003-07-22 03:29 PM Re: Please wait while your logon script executes
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Auto-IT is available at http://www.hiddensoft.com/AutoIt/

The Active-X component belongs into the C:\WINDOWS\SYSTEM folder under Windows 9x.

The only alternative to using Auto-IT is to hack the login message box control and manually disable the 'Cancel' button. This procedure has been descibed both onthis BBS and elsewhere.
_________________________
There are two types of vessels, submarines and targets.

Top
#43130 - 2003-07-22 11:30 PM Re: Please wait while your logon script executes
James Murdoch Offline
Fresh Scripter

Registered: 2001-12-17
Posts: 20
Loc: Houston Tx.
This seems to work great on Win98, after I found that I needed to open a few tabs duruing the Autoit install to get the AutoItX.dll and I added a "second chance" CreateObject line after the autoitx.dll was copied and registered.

But Win95 is still a problem. I can not get it to shut down or to hide the windows.

Thanks for all your help. This board always gets me in the right direction.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1636 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.027 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