④+:发送Shift键,按住shift加字母是输出大写字母的一种方式,这也是为什么在脚本里我们要用小写字母表示键位的原因,因为大写字母它会自动帮我们先按下shift。花括号转义按键 除了常用的字母数字符号和这4个特殊键,剩下的键位我们可以查阅帮助文档里的Send表格,大部分的都很好记。例如F1就是{F1},回车就是{Enter...
send {shift up} Return } LClick: { Click Return } MouseRButton: { Send {RButton Down} Return } Close(){ global bStart:=false send {Shift up} Send {RButton up} SetTimer Skill1,off SetTimer Skill2,Off SetTimer Skill3,OffSetTimer Skill4,Off SetTimer MouseLButton,Off SetTimer, LClick,...
上面的代码分为了四组.这些代码可以放在一个ahk脚本文件里运行,事实上,一个ahk脚本里可以放无数个指令.第一组代码的意思是,按下快捷键Alt+r,自动打开网页www.baidu.com.第二组代码意思是,按下快捷键Windows徽标键+q,自动打开位于C:\ProgramFiles的这个文件夹.第三组代码的意思是,按下快捷键ctrl+shift+s,自动...
DetectHiddenText, On shift_f3_flag:=0 $+F4:: if(!shift_f3_flag) WinHide ,%A_ScriptName% else WinShow ,%A_ScriptName% shift_f3_flag:=!shift_f3_flag send {Shift down}{F3}{Shift up} return GuiClose: Gui Destroy OnExit: FileDelete,%A_Temp%\*.DELETEME.html ;clean tmp file Gui...
; 发送home shift+end快捷键 Send {Home 10} Send {LShift down} Send {End} Send {LShift up} ; 发送Ctrl + T快捷键 Send ^t sleep 100 ; 切换回之前的活动窗口 WinActivate, ahk_id %previousWindow% WinWaitActive, %previousWindowTitle%
ahk模拟ctrl+shift+tab Dcst(){ send{esc} send{ctrldown}{shiftdown} send{tab4} send{shiftup}{ctrlup} } 1. 2. 3. 4. 5. 6. 是,有点麻烦.折腾了半天,搞出来的.
send {f}sleep 4000send {w Down}sleep 6000send {w up}sleep 500send {shift Down}sleep 200send {F4}sleep 200send {shift up}sleep 570000SetTimer dd,100}}dd:{SetTimer jsqks1,offjsqa=0send msleep 1000MouseMove 463,123sleep 300Clicksleep 300MouseMove 417,236sleep 300Clicksleep 300MouseMove ...
sendinput {shift up} } WheelDownCount+=1 settimer,WheelDownCountEnd,-80returnWheelDownCountEnd: WheelDownCount=0return;Lbutton {{{2~Lbutton:: SetTimer,LbuttonCountEnd,off LbuttonCount+=1 if LbuttonCount=1 { Keywait, Lbutton, t0.15 if Errorlevel { if getkeystate("w","p") send {g up...
ahk自动按键软件 常用知识收集 热键 win+A shift+z +z::按下按键 Send , {ctrl down} 谈起按键 Send , {ctrl up} ;鼠标滚轮向下滚动 Click WheelDown 延迟 800ms Sleep, 800 重复由连续的按tab按键 Loop 20 { Send {Tab down} ; 自动重复由连续的按下事件组成 (没有弹起事件).Sleep ...
SendMode Input SetWorkingDir, %A_ScriptDir% SetBatchLines, -1 SetKeyDelay, -1 SetMouseDelay, -1 DetectHiddenWindows, Off if !(A_IsAdmin || InStr(DllCall("GetCommandLine", "str"), ".exe"" /r")) Run % "*RunAs " (s:=A_IsCompiled ? "" : A_AhkPath " /r ") """ A_Scri...