Vindicator209 Posted October 15, 2006 Share Posted October 15, 2006 (edited) Well, see I have this thing called a password manager, and I want it to make itself a system task so that people dont have to do it themselves, what would I use to do this? my code: expandcollapse popup;By Kyle Moy Global $msg2 = "I will type the password in 2 seconds" #include <GuiConstants.au3> $1=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "1") $2=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "2") $3=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "3") $4=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "4") $5=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "5") $1pass=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "1p") $2pass=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "2p") $3pass=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "3p") $4pass=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "4p") $5pass=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "5p") If $1 = "" Then $1="BLANK" EndIf If $2 = "" Then $2="BLANK" EndIf If $3 = "" Then $3="BLANK" EndIf If $4 = "" Then $4="BLANK" EndIf If $5 = "" Then $5="BLANK" EndIf GuiCreate("Password Manager- My Kyle Moy", 115, 22,910, 678 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $trackmenu = GuiCtrlCreateContextMenu () $a = GuiCtrlCreateMenuitem ($1,$trackmenu) $b = GuiCtrlCreateMenuitem ($2,$trackmenu) $c = GuiCtrlCreateMenuitem ($3,$trackmenu) $d = GuiCtrlCreateMenuitem ($4,$trackmenu) $e = GuiCtrlCreateMenuitem ($5,$trackmenu) GuiCtrlCreateMenuitem ("",$trackmenu) $exititem = GuiCtrlCreateMenuitem ("Exit",$trackmenu) $deleteitem = GuiCtrlCreateMenuitem ("Delete All",$trackmenu) GuiSetState() WinSetOnTop ( "Password Manager- My Kyle Moy","",1) While 1 $msg = GuiGetMsg() If $msg = $exititem Or $msg = -3 Or $msg = -1 Then ExitLoop If $msg = $deleteitem Then RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager") Run("Password Manager") Exit EndIf If $msg = $a Then If $1 = "BLANK" Then $name=InputBox("Name","Name of macro?") $pass=InputBox("Name","Password?") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "1","REG_SZ",$name) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "1p","REG_SZ",$pass) Run("Password Manager") Exit EndIf ToolTip($msg2,0,0) Sleep(2500) Send($1pass) WinActivate("Password Manager- My Kyle Moy") EndIf If $msg = $b Then If $2 = "BLANK" Then $name=InputBox("Name","Name of macro?") $pass=InputBox("Name","Password?") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "2","REG_SZ",$name) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "2p","REG_SZ",$pass) Run("Password Manager") Exit EndIf ToolTip($msg2,0,0) Sleep(2500) Send($2pass) WinActivate("Password Manager- My Kyle Moy") EndIf If $msg = $c Then If $3 = "BLANK" Then $name=InputBox("Name","Name of macro?") $pass=InputBox("Name","Password?") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "3","REG_SZ",$name) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "3p","REG_SZ",$pass) Run("Password Manager") Exit EndIf ToolTip($msg2,0,0) Sleep(2500) Send($3pass) WinActivate("Password Manager- My Kyle Moy") EndIf If $msg = $d Then If $4 = "BLANK" Then $name=InputBox("Name","Name of macro?") $pass=InputBox("Name","Password?") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "4","REG_SZ",$name) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "4p","REG_SZ",$pass) Run("Password Manager") Exit EndIf ToolTip($msg2,0,0) Sleep(2500) Send($4pass) WinActivate("Password Manager- My Kyle Moy") EndIf If $msg = $e Then If $5 = "BLANK" Then $name=InputBox("Name","Name of macro?") $pass=InputBox("Name","Password?") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "5","REG_SZ",$name) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\macro\manager", "5p","REG_SZ",$pass) Run("Password Manager.exe") Exit EndIf ToolTip($msg2,0,0) Sleep(2500) Send($5pass) WinActivate("Password Manager- My Kyle Moy") EndIf Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit Edited October 15, 2006 by MethodZero [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
tresa Posted October 15, 2006 Share Posted October 15, 2006 Well, see I have this thing called a password manager, and I want it to make itself a system task so that people dont have to do it themselves, what would I use to do this? my code:Can you explain more precisely what you wantAlso you have run("password manager") in your codeIs it an external program? Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 15, 2006 Author Share Posted October 15, 2006 oops, that was supposed t obe password manager.exe... Its the same file, its just Im to lazy to reload the new info, so the script reruns itself, and exits the previus one Run("Password Manager") Exit Ok see, I have this program that saves passwords or usernames or emails or what ever into it, and when you want it to type it, your right click on it, and choose it, I want this thing to run at start up, so I dont have to go and open it up everytime I use my computer. Mainly, my parents are really bad with computers, so I made this so they dont have to type out their whole email address everytime the loginto hotmail, as for me, im using it to loginto games that Im just to lazy to type my friggen long passwords into.... [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
cppman Posted October 15, 2006 Share Posted October 15, 2006 (edited) Im not sure if i completely understand your quesion to run your script at startup:RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "YourProgram", "REG_SZ", @ScriptFullPath)is this what you wanted? Edited October 15, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 16, 2006 Author Share Posted October 16, 2006 yea! thanks! [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Vindicator Posted November 5, 2006 Share Posted November 5, 2006 are you sure thats working for you? it isint for mine.... If I hadn't said thank you yet, and you deserve it, than thank you... 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