AliOzturk Posted October 29, 2013 Posted October 29, 2013 Hello Auto IT I wanna keep it short, so let's get started. I like to store my account details for various sites and programs on a simple log file, It's personal preference and I know it's risky. I'm using somewhat a "form" when I'm typing in my accounts, so that It's easier for me to keep track on what site/program the account is for. The form looks somewhat like this: ### Game / Site: <Here goes the link/name> ### Username: <Username> ### Password: <Password (Often written so only i know what it means> ### More info: <Like what realm or something like that> Would it be possible to create a script in which makes a UI where i can type in those fields, and it will automaticly add it to my log file? I would love to know how this could work, and what kind commands i should look into. - AliOzturk
water Posted October 29, 2013 Posted October 29, 2013 To safely store your passwords AND automate login I would have a look at the open source tool KeePass and the >KeeForm tool from this site. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
UEZ Posted October 29, 2013 Posted October 29, 2013 AliÖztürk, try something like this here: expandcollapse popup#include <EditConstants.au3> #include <StaticConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiButton.au3> $sLog = @ScriptDir & "\MyLog.txt" $hFile = FileOpen($sLog, 1) $hGUI = GUICreate("Test", 350, 350, -1, -1, -1, -1) GUICtrlCreateLabel("Password:", 32, 160, 63, 23, $SS_RIGHTJUST, -1) GUICtrlSetFont(-1, 13, 400, 0, "Arial Narrow") GUICtrlSetBkColor(-1, "-2") GUICtrlCreateLabel("More Info:", 32, 190, 68, 23, $SS_RIGHTJUST, -1) GUICtrlSetFont(-1, 13, 400, 0, "Arial Narrow") GUICtrlSetBkColor(-1, "-2") GUICtrlCreateLabel("Username:", 32, 130, 82, 23, $SS_RIGHTJUST, -1) GUICtrlSetFont(-1, 13, 400, 0, "Arial Narrow") GUICtrlSetBkColor(-1, "-2") $iBtnSave = GUICtrlCreateButton("Save", 222, 300, 100, 30, -1, -1) GUICtrlCreateLabel("Game / Site:", 28, 102, 88, 23, $SS_RIGHTJUST, -1) GUICtrlSetFont(-1, 13, 400, 0, "Arial Narrow") GUICtrlSetBkColor(-1, "-2") $iInp1 = GUICtrlCreateInput("<Like what realm or something like that>", 122, 190, 200, 71, BitOR($ES_MULTILINE, $WS_VSCROLL), $WS_EX_CLIENTEDGE) $iInp2 = GUICtrlCreateInput("<Password>", 122, 160, 200, 20, -1, $WS_EX_CLIENTEDGE) $iInp3 = GUICtrlCreateInput("<Here goes the link/name>", 122, 102, 200, 20, -1, $WS_EX_CLIENTEDGE) $iInp4 = GUICtrlCreateInput("<Username>", 122, 130, 200, 20, -1, $WS_EX_CLIENTEDGE) GUICtrlCreateLabel("Create Log", 11, 20, 327, 49, BitOR($SS_CENTER, $SS_CENTERIMAGE) , -1) GUICtrlSetFont(-1, 32, 400, 0, "Arial Narrow") GUICtrlSetColor(-1, "0x0000FF") GUICtrlSetBkColor(-1, "-2") GUISetState(@SW_SHOW, $hGUI) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE FileClose($hFile) GUIDelete() Exit Case $iBtnSave FileWrite($hFile, GUICtrlRead($iInp1) & @CRLF & _ GUICtrlRead($iInp2) & @CRLF & _ GUICtrlRead($iInp3) & @CRLF & _ GUICtrlRead($iInp4) & @CRLF & @CRLF) MsgBox(0, "Info", "Added text to logfile", 30) EndSwitch WEnd Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
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