摘要: 遍历 text := "abcd" Loop, Parse, text { MsgBox, %A_LoopField% } 遍历每行 text = ( line1 line2 line3 ) msgbox,% text Loop, Parse, text, `n, `r { MsgBox, %A_L 阅读全文
posted @ 2024-12-19 22:50 DwightValentine 阅读(11) 评论(0) 推荐(0)
摘要: 功能 使用Inputhook拦截输入。点击Lwin后,再点击Q、E、A、D、W移动光标到屏幕各个位置。 global MS := 0 global Win_c := 0 Lwin Up::Return <#r::Send {Lwin down}{r}{Lwin up} Return $Lwin:: 阅读全文
posted @ 2024-08-02 16:05 DwightValentine 阅读(35) 评论(0) 推荐(0)
摘要: 在Window10上建立好了Python虚拟环境后,通常进入环境的方法是 .\myvenv\Scripts\Activate.ps1 但使用Powershell时,输入以上命令可能提示如下错误: .\myvenv\Scripts\Activate.ps1 : 无法加载文件E:\PycharmProj 阅读全文
posted @ 2023-10-18 16:53 DwightValentine 阅读(1247) 评论(0) 推荐(0)
摘要: ``` #NoEnv #SingleInstance,off SendMode, Input SetBatchLines, -1 SetWorkingDir, %A_ScriptDir% count:=0 Menu,tray,NoStandard Menu,tray,Tip, 计时器 Menu,Tr 阅读全文
posted @ 2023-05-29 14:22 DwightValentine 阅读(74) 评论(0) 推荐(0)
摘要: 实现1 ;Settings adjusted by KratosHaynes ;Credits to HHenryYYT SendMode Input ;Adjust sens below ;Settings ; ; sens:=1 zoomsens:=0.01 ;Binds ; ; ;Key Bi 阅读全文
posted @ 2023-04-22 03:20 DwightValentine 阅读(48) 评论(0) 推荐(0)
摘要: ; ym 可以 y轴换列,有点类似float:left ,而 xm可以换行,有点类似clear:both Gui, Add, Button, gFunctionA Default, FunctionA Gui, Add, Button, gFunctionB Default ym, Function 阅读全文
posted @ 2023-03-06 13:05 DwightValentine 阅读(16) 评论(0) 推荐(0)
摘要: 长按触发 ; 长按空格触发连点 #NoEnv #SingleInstance, Force SendMode, Input SetBatchLines, -1 SetWorkingDir, %A_ScriptDir% $Space:: while GetKeyState("Space", "P") 阅读全文
posted @ 2023-02-14 15:17 DwightValentine 阅读(126) 评论(0) 推荐(0)
摘要: 单键双击触发 ; 双击Ctrl,切换窗口 ~LCtrl:: KeyWait Ctrl if (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 400 && A_TimeSincePriorHotkey > 100) [执行内容] retu 阅读全文
posted @ 2023-01-03 16:23 DwightValentine 阅读(82) 评论(0) 推荐(0)
摘要: 一键启用,一键关闭 实现1 ;创建2个线程 #maxThreadsPerHotkey, 2 setKeyDelay, 50, 50 setMouseDelay, 50 banana:=0 Down:: ; banana:=!banana .... This assigns banana to the 阅读全文
posted @ 2022-12-25 11:48 DwightValentine 阅读(28) 评论(0) 推荐(0)