Had some problems with kids changing the domain name,
Have written this script to write the correct name into a domain login dialog box (Windows 98).
Cant seem to get it to work though... can anyone help?
code:
Break OFF
SetConsole("Hide")
sleep 1
$regkey='HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control'
$uname= READVALUE ("$regkey", "Current User")
if $uname == "" ;if user is not logged in
$=setfocus ("enter network password")
$=sendkeys ("~ D")
$=sendkeys ("DOMAIN")
$=sendkeys ("{TAB}")
$=sendkeys ("{TAB}")
$=sendkeys ("{TAB}")
MessageBox("Set Domain Name", "Domain name", 64, 4)
sleep 5
endif
exit 0
[ 18. July 2003, 17:13: Message edited by: Darren ]
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.