海运的博客

AutoHotkey调用KeePass快速输入密码

发布时间:March 2, 2013 // 分类:AutoHotKey // No Comments

通过AutoHotkey快速启动KeePass并在当前页面自动输入密码,首先自定义函数,方便多个程序下调用。

keepass()
{
DetectHiddenWindows, On
IfWinExist Data.kdbx
{
  Send ^!a
}
else
  {
  DetectHiddenWindows, On
  IfWinExist ahk_class WindowsForms10.Window.8.app.0.2bf8098_r13_ad1
    {
    Send ^!k 
        IfWinNotActive  打开数据库
        {
            Send ^!k
        }
    WinWait 打开数据库
    Send www.haiyun.me{Enter}
    Sleep 1000
    Send ^!a
    }
    else
      {
      Run D:\Program Files\KeePass\KeePass.exe
      WinWait 打开数据库
      WinActivate
      Send www.haiyun.me{Enter}
      Sleep 1000
      Send ^!a
      }
}
}

火狐下通过快捷键调用KeePass快速输入密码,其它浏览器更改Ahk_Class:

#IfWinActive ahk_class MozillaWindowClass
::/p::
keepass()
Return

标签:autohotkey, firefox, 火狐, keepass, autohotkey调用keepass快速输入密码

评论已关闭

分类
最新文章
最近回复
  • 海运: 网络,找到相应的url编辑重发请求,firefox有此功能,其它未知。
  • knetxp: 用浏览器F12网络拦截或监听后编辑重发请求,修改url中的set为set_super,将POS...
  • Albert: 啊啊啊啊啊啊啊啊啊 我太激动了,终于好了英文区搜索了半天,翻遍了 pve 论坛没找到好方法,博...
  • jiangker: good, very helpful to me
  • fengfeng: N1 armbian 能有编译下内核吗。。我要开启can 不懂怎么操作
  • 1: 方法一ngtcp2要改下:./configure PKG_CONFIG_PATH=/usr/l...
  • 海运: 关闭服务器
  • 海风: override.battery.charge.low以及override.battery.r...
  • koldjf: 不能过滤
  • 杰迪武士: 此文甚好甚强巨,依照此文在树莓派2 + Rasbian上部署成功 感谢博主美文共赏