RogFleming Posted May 5, 2009 Share Posted May 5, 2009 In the code you will want to change the domain to yours before compiling the code Func AuthAdmin() GUICreate("Admin Login",200,100) $user = GuiCtrlCreateInput("", 25, 25, 130, 20) $pass = GUICtrlCreateInput("",25, 45 + $top0, 130, 20, 0x0020) $enterbtn =GUICtrlCreateButton("Enter", 25, 65, 70, 20) GUISetState() $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GuiGetMsg() Select Case $msg = $Exitbutton ExitLoop Case $msg = $enterbtn $UserName = GUICtrlRead($user) $PassWord = GUICtrlRead($pass) $runout = RunAs($UserName, "YourDomainHere", $PassWord, 0, $AppName, @SystemDir) If @error Then MsgBox(1,"Login Error","Incorrect Credentials provided.") GUIDelete() Else GUIDelete() EndIf ExitLoop EndSelect WEnd EndFuncWksAdmin.au3 Link to comment Share on other sites More sharing options...
Bert Posted May 5, 2009 Share Posted May 5, 2009 so, what is your issue? You never asked a question. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
RogFleming Posted May 5, 2009 Author Share Posted May 5, 2009 so, what is your issue? You never asked a question.Sorry,Just offering it up to community, please move as needed. Link to comment Share on other sites More sharing options...
Bert Posted May 5, 2009 Share Posted May 5, 2009 If you are posting an example, the put it in example scripts section. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
SkinnyWhiteGuy Posted May 5, 2009 Share Posted May 5, 2009 With his last post, he only has a total of 4. He couldn't quite get it there yet. One more post, and then he could have. It's a nice script, looks very helpful. Only thing I'd do different, would be to remove where it statically puts the file to C:\temp (I don't have that directory), and the Images path used in the script also might not exist on a computer without AutoIt, so embedding that/sending it with the program might be a good option. Link to comment Share on other sites More sharing options...
RogFleming Posted May 5, 2009 Author Share Posted May 5, 2009 With his last post, he only has a total of 4. He couldn't quite get it there yet. One more post, and then he could have.It's a nice script, looks very helpful. Only thing I'd do different, would be to remove where it statically puts the file to C:\temp (I don't have that directory), and the Images path used in the script also might not exist on a computer without AutoIt, so embedding that/sending it with the program might be a good option.I understand your point, I will in the future remove the dependancy in the script Link to comment Share on other sites More sharing options...
surferdog Posted May 5, 2009 Share Posted May 5, 2009 What's supposed to happen? I get nothing. Link to comment Share on other sites More sharing options...
RogFleming Posted May 5, 2009 Author Share Posted May 5, 2009 What's supposed to happen? I get nothing.Look in the System tray your should see a Globe icon. Link to comment Share on other sites More sharing options...
RogFleming Posted May 5, 2009 Author Share Posted May 5, 2009 Look in the System tray your should see a Globe icon.sry an autoit icon, right click will show menu 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