Jump to content

Search the Community

Showing results for tags 'keepass'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 2 results

  1. I wrote this script to use with KeePass, a password manager that I have used for almost forever. This script isn't meant to replace the hot-keys, but to just provide another way to execute them. I'm sure there are at least a few other users of this password manager, and this script is really small and it shouldn't be hard to understand, so feel free to use it and ask any questions about it. Oh, I start this script with a trigger in KeePass. Opt("TrayMenuMode", 3) Local $SleepTime = 100 Local $helpURL = "https://keepass.info/help/base/index.html" Local $KeePass[2] = ["C:\Program Files\KeePass Password Safe 2\", "KeePass.exe"] Local $AutoType[3] = ["-auto-type", "-auto-type-password", "-auto-type-selected"] Local $idKP = TrayCreateItem("KeePass") Local $idKPH = TrayCreateItem("KeePass Help") TrayCreateItem("") Local $idAT = TrayCreateItem("AutoType Selected") Local $idGAT = TrayCreateItem("Global AutoType") Local $idGATP = TrayCreateItem("Global PassWord") TrayCreateItem("") Local $idExit = TrayCreateItem("Exit") If $CmdLine[0] > 1 Then For $i = 1 to $CmdLine[0] Switch $CmdLine[$i] Case '-delay' $SleepTime = $CmdLine[$i + 1] Case '-path' $KeePass[0] = $CmdLine[$i + 1] Case '-name' $KeePass[1] = $CmdLine[$i + 1] EndSwitch Next EndIf TraySetState(1) TraySetIcon(@ScriptDir & '\AutoGAT.ico') While 1 If Not ProcessExists($KeePass[1]) Then ExitLoop ;leaves this While loop if KeePass exits or isn't running Switch TrayGetMsg() Case $idExit Exit Case $idKP ShellExecute($KeePass[0] & $KeePass[1]) Case $idKPH ShellExecute($helpURL) Case $idAT Send("!{TAB}") Sleep($SleepTime) ShellExecute($KeePass[0] & $KeePass[1], $AutoType[2]) Case $idGAT Send("!{TAB}") Sleep($SleepTime) ShellExecute($KeePass[0] & $KeePass[1], $AutoType[0]) Case $idGATP Send("!{TAB}") Sleep($SleepTime) ShellExecute($KeePass[0] & $KeePass[1], $AutoType[1]) EndSwitch WEnd Exit
  2. I've been unsuccessful in being able to send Keepass AutoType strings over to a GUICtrlCreateEdit field. I'm not adding any optional settings so maybe that is why, but I don't know which one(s) I should add if they are necessary. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $sInputText = "" #Region ### START Koda GUI section ### Form= $FormSendText = GUICreate("Text To Window", 634, 353, 192, 124) $EditString = GUICtrlCreateEdit("", 8, 24, 601, 273) GUICtrlSetData(-1, "") $ButtonSend = GUICtrlCreateButton("Send Now", 264, 312, 75, 25, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $ButtonSend $sInputText = GUICtrlRead($EditString) SendTextToWindow($sInputText) Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ; The SendTextToWindow() function is not included since it is beyond the scope of the question. Keepass Autotype sets focus to the target window, but the GUICtrlCreateEdit field doesn't appear to accept it.
×
×
  • Create New...