使用自动热键使脚本运行更快

时间:2017-02-02 13:33:12

标签: autohotkey

我需要让脚本运行得更快。任何人都可以帮我吗?我可以使脚本运行得更快的任何键?以下是我的工作代码。 我曾尝试使用#SingleInstance force #Persistent #WinActivateForce Setbatchlines, -1 Run,Desk.cpl SetTimer, Check, 500 return Check: IfWinActive, ahk_class CabinetWClass { SetTitleMatchMode, 2 WinWait, Screen Resolution WinActivate, Screen Resolution WinWaitActive, Screen Resolution ControlFocus, ComboBox3, Screen Resolution Send, {Tab}{Space} } else { IfWinActive, ahk_class CabinetWClass { SetTitleMatchMode, 2 WinWait, Screen Resolution WinActivate, Screen Resolution WinWaitActive, Screen Resolution ControlFocus, ComboBox2, Screen Resolution Send, {Tab}{Space} } } IfWinActive, ahk_class #32770 { WinActivate SendMessage, 0x1330, 1,, SysTabControl321, ahk_class #32770 } IfWinActive, ahk_class #32770 { WinActivate Sleep 1230 Control, ChooseString, True Color (32 bit), ComboBox2, ahk_class #32770 Sleep 1230 } IfWinActive, ahk_class #32770 { WinActivate ControlClick, &Apply, ahk_class #32770 } IfWinExist,Display Settings { WinActivate ControlClick, &Yes,Display Settings } IfWinExist, ahk_class #32770 { WinActivate ControlClick,OK, ahk_class #32770 } IfWinActive, Screen Resolution { WinActivate ControlClick, OK, Screen Resolution } IfWinNotExist, Screen Resolution { ExitApp return } ,但这不起作用。

{{1}}

1 个答案:

答案 0 :(得分:1)

通过添加

来提高键盘和鼠标的速度
setKeyDelay, 0
setMouseDelay, 0

在脚本的顶部。