Doxie Posted January 21, 2005 Posted January 21, 2005 Hi, would it be possible to add the windos login system before launching a au3 script. Right now i only use inputbox with a static password. But i need it to be safer, and also tracking who has used the program. Thanks in advance Were ever i lay my script is my home...
Doxie Posted January 21, 2005 Author Posted January 21, 2005 I might have found the answer on my question I will try: Create a GUI with Username, Password and Domain. Use that with RunAs (even tough i dont need RunAs) If RunAs can't login..... argh i just saw this Otherwise returns 1--regardless of success. (If the login information was invalid, subsequent Run/RunWait commands will fail....) Were ever i lay my script is my home...
Doxie Posted January 21, 2005 Author Posted January 21, 2005 Can this work? RunAsSet("admin", @Computername, "adminpassword") $var=AutoItSetOption ( "RunErrorsFatal", 0 ) ; Check if admin is ok If $var = 1 Then MsgBox(0, "Error", "Wrong Username/Password") Exit EndIf Were ever i lay my script is my home...
sugi Posted January 21, 2005 Posted January 21, 2005 If $CmdLine[0] > 0 Then If $CmdLine[1] = '/close' Then Exit EndIf RunAsSet("admin", @Computername, "adminpassword") $var=AutoItSetOption ( "RunErrorsFatal", 0 ) RunWait(@ScriptFullPath & ' /close') If @error Then MsgBox(0, "Error", "Wrong Username/Password") Exit EndIfRunAs does never fail. Only Run/RunWait fails.
IanR Posted January 21, 2005 Posted January 21, 2005 Not quite sure of your objective here, but if yo're looking to log someone on then run a program, this might do the job.Latest version (not on webpage) has "kiosk mode" option where only one program can be run, after which machine reboots. If it says "Made in China" then it just might be made by slave labour...
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