BillLuvsU Posted May 8, 2005 Posted May 8, 2005 Does anybody know how you would check if the password and username worked in the RunsAs() command? I am trying to make an installer that would work for everybody for my game. It will have a gui with 2 inputs for the username and pass. if they are incorrect it will do this again, if they are they will continue with the installer. I would really appreciate if someone would atleast provide me with a theory on how to do it. [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw
Developers Jos Posted May 8, 2005 Developers Posted May 8, 2005 Does anybody know how you would check if the password and username worked in the RunsAs() command? I am trying to make an installer that would work for everybody for my game. It will have a gui with 2 inputs for the username and pass. if they are incorrect it will do this again, if they are they will continue with the installer. I would really appreciate if someone would atleast provide me with a theory on how to do it.<{POST_SNAPBACK}>RunAsSet($Username, @ComputerName, $Password) RunWait(@ComSpec & " /k exit", "", @SW_HIDE) If @error = 1 Then MsgBox(48, "Error", "Error ..........") EndIf SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
BillLuvsU Posted May 8, 2005 Author Posted May 8, 2005 lol, thankyou. I guess I was just having a newbie moment lol. [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw
BillLuvsU Posted May 8, 2005 Author Posted May 8, 2005 Ok, I ran the program but it crashes autoit. I get an error message saying: Error: Unable to execute the external program. Logon Failure: unknown user name or bad password. [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw
Developers Jos Posted May 9, 2005 Developers Posted May 9, 2005 Ok, I ran the program but it crashes autoit. I get an error message saying:Error: Unable to execute the external program.Logon Failure: unknown user name or bad password.<{POST_SNAPBACK}>Do you have AutoItSetOption("RunErrorsFatal", 0) at the start of your script ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
BillLuvsU Posted May 9, 2005 Author Posted May 9, 2005 No [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw
Developers Jos Posted May 9, 2005 Developers Posted May 9, 2005 No<{POST_SNAPBACK}>Well... i guess you need that to make sure yoiu don't get these messages... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
CyberSlug Posted May 9, 2005 Posted May 9, 2005 Alternative (slightly longer): http://www.autoitscript.com/forum/index.ph...rname++password Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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