Spyder25000 Posted April 9, 2007 Share Posted April 9, 2007 (edited) okay i have made a GUI to which i give to my school mates I want it to write into a .ini or a .log file becuase it makes a password change for the ADMIN (oh oh TROBLE FOR ME) But i want it to LIST what they have chnaged it to here is my code which i work in my class time expandcollapse popup#include <GuiConstants.au3> ; GUI GuiCreate("Nick's Tools", 265, 300) GuiSetIcon("Nick's Tools.exe") AutoItSetOption ("GUICloseOnESC", 0) $Button_1 = GUICtrlCreateButton ("Delete the Wireless Policy", 0, 0, 260) $Button_3 = GUICtrlCreateButton ("Change Admin password to original", 0, 145, 260) $Button_4 = GUICtrlCreateButton ("Shutdown", 10, 225, 240, 50) GUICtrlCreateLabel ("Change the Admin's password to what you put in box", 0, 80) $var = GUICtrlCreateInput ("", 0, 95) $Button_2 = GUICtrlCreateButton ("Change Admin password", 0, 120, 260) $helpmenu = GUICtrlCreateMenu ("File") $infoitem = GUICtrlCreateMenuitem ("About",$helpmenu) $Button_5 = GUICtrlCreateButton ("Close uneeded processes", 0, 25, 260) GUICtrlCreateLabel ("Version 1.7 BETA", 100, 200) ;GUICtrlRead($var) GUISetState () Do $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 RegDelete ("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Wireless") ; Delte Reg ToolTip ("Restarting Computer Please Save All Work", 10, 10) Sleep (7500) Shutdown (6) Case $msg = $Button_2 Run ("cmd.exe") ; Cmd open Sleep (10) Send ("Net User Administrator *{ENTER}") Sleep (15) Send ($var) SLeep (12) Send ("{ENTER}") Sleep (12) Send ($var) Sleep (12) Send ("{ENTER}") Sleep (12) Send ("exit{Enter}") Sleep (1500) MsgBox ( 64, "", "Administrator's Password is "& GUICtrlRead($var)) IniWrite ("C:\WINDOWS\password.log", "Password", "Password", "" & GUICtrlRead($var)) Case $msg = $Button_3 Run ("cmd.exe") ; Cmd open Sleep (15) Send ("Net User Administrator *{ENTER}") Sleep (12) Send ("deltakilo{Enter}") Sleep (12) Send ("deltakilo{Enter}") Sleep (12) Send ("exit{Enter}") sleep (700) MsgBox ( 64, "Password set", "Password is now Normal, deltakilo") Case $msg = $Button_4 Shutdown (5) Case $msg = $infoitem MsgBox (0, "About", "Made By X") Case $msg = $Button_5 ProcessClose ("hpcmpmgr.exe") ProcessClose ("hpqgalry.exe") ProcessClose ("atiptaxx.exe") ProcessClose ("Itmoh.exe") ProcessClose ("qttask.exe") ProcessClose ("Apoint.exe") ProcessClose ("ntvmd.exe") EndSelect ; GUI MESSAGE LOOP GuiSetState() Until GuiGetMsg() = $GUI_EVENT_CLOSE Edited October 27, 2014 by Spyder25000 Link to comment Share on other sites More sharing options...
Shevilie Posted April 9, 2007 Share Posted April 9, 2007 I got really no idea of what you want .... IniWrite ("C:\WINDOWS\password.log", "Password", "Password", "" & GUICtrlRead($var)) This part writes to the ini... and that is what you want ??? Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Spyder25000 Posted April 15, 2007 Author Share Posted April 15, 2007 I want it to list them (passwords) 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