jswizzlez Posted December 27, 2004 Share Posted December 27, 2004 (edited) I want a script to automatically login to my Windows XP Home account every 3 hours and 20 minutes, run the script, then log out. Is this possible? Sadly, I can't just use control sends. Edited December 27, 2004 by jswizzlez Link to comment Share on other sites More sharing options...
layer Posted December 27, 2004 Share Posted December 27, 2004 seeing that your new, search the forums, read the help file and learn... this isn't a place where people ask for a script unlesss someone is willing to do it.. FootbaG Link to comment Share on other sites More sharing options...
Insolence Posted December 27, 2004 Share Posted December 27, 2004 He asked whether or not it's possible. He showed he has some knowledge with controlsend, PLEASE answer the question before you lecture, Layer. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
layer Posted December 27, 2004 Share Posted December 27, 2004 (edited) im not even going to fight but that is just my opinion which obviously differs very much then yours... but i dont think thats schedueld login is possible since the script can only run on desktop (i think...) BTW: wheres your answer? Edited December 27, 2004 by layer FootbaG Link to comment Share on other sites More sharing options...
ezzetabi Posted December 27, 2004 Share Posted December 27, 2004 (edited) Since you can't emulate Control Alt Canc the only way I think possible is using Reg editing functions and activate autologon, reboot and you'll be in! Of course just before rebooting you'll have modified the RunOnce key for starting the second part of the script (via argument (1) ) that deletes autologon keys and logoff when the job is done. About (1) here and example (untested) If $CmdLine[0] > 0 Then If $CmdLine[1] = '/secondpart' Then _SecondPart() Exit EndIf EndIf ;First part here ;autologon keys, runonce keys and rebooting. Exit Func _SecondPart() ;Second part here ;Deleting autologon keys and all the job you need. Shutdown(0) EndFunc About the autologon keys... You have to seek the key HKEY LOCAL MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon Where the strings DefaultUsername will keep your username AutoAdminLogon will be set to 1 DefaultPassword will keep your password The password as you can see is readable to everyone can access the registry! So you HAVE TO delete the key when the second part of the script starts! Edited December 27, 2004 by ezzetabi Link to comment Share on other sites More sharing options...
jswizzlez Posted December 28, 2004 Author Share Posted December 28, 2004 Yea, I don't want to enable autologin though. Forget about it, but thanks for the responses! Link to comment Share on other sites More sharing options...
ezzetabi Posted December 28, 2004 Share Posted December 28, 2004 Most probably there are no other ways to log in. So I can foget about it, but you need using only Control commands... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now