Sign in to follow this  
Followers 0
Spyder25000

HELP

3 posts in this topic

#1 ·  Posted (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

#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 by Spyder25000

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

I want it to list them (passwords)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0