幸运之星正在降临...
点击领取今天的签到奖励!
恭喜!您今天获得了{{mission.data.mission.credit}}积分
我的优惠劵
-
¥优惠劵使用时效:无法使用使用时效:
之前
使用时效:永久有效优惠劵ID:×
没有优惠劵可用!
谢谢建议。(1)一键大小写转换。这个我针对单个字符做了设计,对于一串字符,大小写混合编写的时候,统一转换成大写或小写的一键转换写起来对我来说有点难。(2)恢复粘贴板初始内容。我补充了代码。(3)clipwait代替sleep。按照你的建议做了调整。 ;全部转换为大写或小写 ^!j:: ClipSaved := ClipboardAll Send, ^c ClipWait, 2 clipboard := Upper(clipboard) Send, ^v clipboard := ClipSaved ClipSaved = ; return ^!l:: ClipSaved := ClipboardAll Send, ^c ClipWait, 2 clipboard := Lower(clipboard) Send, ^v clipboard := ClipSaved ClipSaved = ; return
谢谢大佬鼓励?
使用油猴脚本进行了测试,非常nice!感谢分享!
学习一下
RA是runany,ahk开发的快捷启动软件,很好用的,推荐
我用的小鹤输入法,我使用.进入翻页,进入翻页以后,按下hw就能唯一锁定“程”
感谢分享,自己写api调用对我来说太难了。
针对使用过程中的缺点,做了优化,感谢认可?
在使用过程中发现了有两个不足,首先是光标后面的字符修改后,应该把光标回调,请自行修改;其次是对于中文的下划线“——”没有特别好的修改方法,我的做法是,在字典中添加"—":"_"项用来辅助找到中文破折号,然后在代码!j部分,正常执行完以后添加判断 charReplaceDict :={"?":"?","?":"?",">":"》","》":">","":"、","、":"",",":",",",":",",".":"。","。":".","<":"《","《":"<","[":"【","【":"[","]":"】","】":"]",";":";",";":";",":":":",":":":","^":"……","……":"^","!":"!","!":"!","`":"·","·":"`","$":"¥","¥":"$","(":"(","(":"(",")":")",")":")","_":"——","——":"_","—":"_","/":"、","'":"‘’","''":"‘’","‘’":"''","‘":"'","’":"'","""":"“”","""""":"“”","“”":"""""","“":"""","”":""""} !j:: ;光标前面的,再写一个光标后面的就好了 ClipSaved := ClipboardAll Send, +{Left} sleep, 200 Send, ^c sleep, 200 clipboard = % charReplaceDict.HasKey(clipboard)? charReplaceDict[clipboard]:clipboard Send, ^v sleep, 100 spstr:=clipboard ndl:="_" ;对于特殊的情况就是这个下划线,首先字典做了更改,然后在这里进行一下判断 If InStr(spstr,ndl) {;这里加上这么多延迟是因为我用vscode中的markdown写东西键盘输入延迟比较高,可以根据实际情况自己调整时间 Send, {Left} sleep, 100 Send, {Backspace} sleep, 100 Send, {Right} } clipboard := ClipSaved sleep, 100 ClipSaved = ; return
哇,好厉害,感谢分享,我去试一下