首页 > 其他分享 >ahk autohotkey脚本 备份

ahk autohotkey脚本 备份

时间:2022-12-09 21:11:07浏览次数:45  
标签:Return autohotkey ahk 备份 Send Sleep NowY NowX Click

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

SetTitleMatchMode, 2

;Enter::
;Send,{Click 1779 210}
;Send,{Click 779 210}
;Return

;XButton2::

#IfWinActive ahk_exe chrome.exe
^y Up::
Sleep,500
;~ Send,^+y
Send {Ctrl down}{Shift Down}
Send,y
Sleep,500
Send {Ctrl up}{Shift up}
;SendInput,^+y;大小写问题
Return

!2::
Send, {Click 942 123}
Return

~^d::
;~ Send, {Click 1580 73}
;~ Sleep,600
;~ Send, {Click 143 205}
;~ Sleep,300
Send,{Left}
Return

#IfWinActive Word
~^b::
Send,^u
Return


#IfWinActive PowerPoint
^v::

MouseGetPos, NowX, NowY
tempx:=NowX
tempy:=NowY
Send,{Click 290 31}

Click,%tempx%, %tempy%, 1
Return

^b::

MouseGetPos, NowX, NowY
tempx:=NowX
tempy:=NowY
Send,{Click 241 25}

Click,%tempx%, %tempy%, 1
Return


#IfWinActive 用户1 - Anki
j::
Send ^m
return

e::
Send,b
Sleep, 700
Send,{Enter}
Sleep,800
Send,{Enter}
; Sleep, 900
; Send,{Enter}
Return

p::
Send, {Click 156 55}
;Send,^+p
Sleep,400
Send, {Click 188 158}
;Send,{Enter}
Return

!1::
MouseGetPos, NowX, NowY
tempx:=NowX+65
tempy:=NowY+100
;~ tempx:=NowX+100
;~ tempy:=NowY+300

Click
Sleep,300
Click,%tempx%, %tempy%, 1
Return


#IfWinActive Browse
Esc::
; Send,{Tab}
Send, {Click 150 538}
Sleep,700
Send,{Esc}
;Sleep,600
;Send,{Esc}
Return


#IfWinActive 沙拉查词
Esc::
Send, {Click 510 20}
Return



#IfWinActive 在线翻译_有道
~^f::
tempx:=0
tempy:=0
Loop
{
    Sleep,500
    MouseGetPos, NowX, NowY
    if (NowX != tempx and NowY != tempy){
        tempx:=NowX
        tempy:=NowY
        Send,{Enter}
    }
    IfWinNotActive, 在线翻译_有道
    {
        break
    }
    
}
Return


#IfWinActive ahk_exe PDFXEdit64.exe
Tab::
;MsgBox, The active window's
Send,^{Tab}
Return
+Tab::
Send,^+{Tab}
Return
;Enter::
;Send,{Click 1779 210}
;Send,{Click 779 210}
Return


#IfWinActive MATLAB R2021a
;^+-::
;Send,^!{Enter}
;enter必须加括号
; Send,!{Tab}

; MsgBox % "The active window's ID is " WinExist("A")
;WinGetActiveTitle, Clipboard
; WinGetClass, Clipboard, A
; WinGetClass, class, A
; MsgBox, The active window's class is "%class%".
; MsgBox, title is "%title%"

 

 

 

 

标签:Return,autohotkey,ahk,备份,Send,Sleep,NowY,NowX,Click
From: https://www.cnblogs.com/hhdom/p/16970014.html

相关文章

  • SQL Server备份、完整备份,差异备份、日志备份
    全备份(FullBackup):就是对整个系统进行完全备份,包括系统和数据。这种备份方式的好处就是很直观,容易被人理解,当数据丢失时容易恢复。然而它也有不足之处:首先由于每天都对系统......
  • 【WordPress建站】3. 网站备份
    为什么备份?日常备份(防止被黑)网站搬家(更换主机)常见的备份方法:​​https://www.bilibili.com/video/BV11h411y7xo​​可以看下,能更好的理解备份搬家插件介绍All-in-OneWPMi......
  • 数据库定时异地备份与还原软件
    数据同步备份与还原软件,主要是实际现实生活中要将生成环境下的数据备份到公司进行相关历史数据的统计,也同时为了保证生产环境下的数据的安全性,做到生产环境下的定时备份,同......
  • Oracle备份方式
    数据库备份与恢复命令导出/导入(Export/Import);冷备份;热备份;rman数据备份与恢复命令导入导出imp/exp冷备份冷备份发生在数据库已经正常关闭的情况下,当正常关闭时会提......
  • MySQL备份和恢复
    备份对于数据库至关重要,因为当数据库出现系统崩溃、硬件故障或者用户误删除数据时,可以利用备份进行恢复。另外,在升级MySQL之前进行备份也是一种必要的安全措施;而且备份还......
  • 【784】Outlook邮件备份,从一个账户转移到另一个账户
    参考:Backupyouremail参考:Importemail,contacts,andcalendarfromanOutlook.pstfile建议使用Windows电脑操作,简单方便,用Mac的话,没找到对应的按钮,好像版本......
  • 【Linux操作系统】vim编辑器和管道与重定向命令以及U盘备份文件学习详解
    一.TTP是什么终端是一种字符型设备,它有多种类型,通常使用tty来简称各种类型的终端设备。tty是Teletype的缩写。Teletype是最早出现的一种终端设备,是由Teletype公司生产......
  • 如何按时间周期保存或备份已处理文件?
    在使用知行之桥EDI系统时,经常会遇到根据日期查询某个文件是否已被成功处理的情况,最近运维顾问在处理客户问题时,发现很多客户都有这样的疑问,尤其是业务量较大的客户,那么如何......
  • 一文教会你SQL Server数据库的备份与还原
    文章目录1、SQLServer数据库的备份步骤:2、SQLServer数据库的还原步骤:1、SQLServer数据库的备份步骤:1.1:打开“数据库”,找到需要备份的数据库,然后右键,如下图:......
  • mysqldump备份命令使用参数
    参数参数说明导出全部数据库。mysqldump-uroot-p--all-databases导出全部表空间。mysqldump-uroot-p--all-databases--all-tablespaces不导出任何表空间......