level 1
有时测试的时候 鼠标划完却不知道 到底触发了没有 触发了什么
最近试写了以下代码
在全局LUA中的sp_after_action内 添加以下代码 选项勾上允许AFITER ACTION脚本
acKillDisplayText()
acDisplayText(gact, "Arial", 30, 128, 0, 255, 1000, 800, 500)
字体位置大小颜色可以自己修改 可惜不能描边 可能和背景颜色混淆
抛砖引玉 大家有更好的也可以发来
2015年08月15日 10点08分
1
level 1
WIN10下 取消延时可能导致卡顿
我改为999999让他再不能取消 或者等作者更新
2015年08月15日 10点08分
2
我也是win10,500毫米取消延迟没卡顿,版本是2.8.5.21。会不会是其他问题?
2015年08月20日 03点08分
@Eternal_Time 我这只有打开WIN10一些应用时会这样 比如商店 任务管理器 开始菜单
2015年08月20日 06点08分
level 1
WIN10下 配置文件和汉化路径
C:\Users\[用户名]\AppData\Roaming\StrokesPlus
2015年08月15日 10点08分
3
level 1
另外想问下 滚轮代码怎么写
有看到键盘 有鼠标按键 有鼠标移动 就没见滚轮
偏偏有的软件功能只能用滚轮调。。
2015年08月15日 11点08分
5
看来(只能/可以)自己发系统消息了
2017年04月24日 20点04分
level 9
我用弹气泡代码做提示的,屏显没背景色没描边有时真看不清。
acDisplayBalloonTip("开", "置顶", 2) --displays a simple balloon tip with an info icon
2015年08月20日 03点08分
6
不过win10显示气泡速度好慢
2015年08月20日 03点08分
level 9
sp_wheel_delta和gwd是滚轮值,看信息由说明的。
以下是滚轮加音量,手势只用滚轮做修饰键。
local iVolume = 0
iVolume = acGetVolume()
iVolume = iVolume + ((gwd / 120) * 5)
if iVolume > 50 then
iVolume = 50
end
acSetVolume(iVolume, 0)
acDisplayBalloonTip(iVolume, "声音", 1) --displays a simple balloon tip with an info icon
2015年08月20日 03点08分
7
还有选项里2个滚轮相关的按需勾上
2015年08月20日 03点08分
level 9
修饰建是滚轮向上,滚轮选项都没勾,不知道你是不是要这种。
local glcs = 0 --滚轮次数
glcs = glcs + ((gwd / 120) * 5)
if glcs == 5 then --滚轮一次时
acSendKeys("滚轮一次") --发送这些文字,但是中文不支持
else if glcs == 10 then --滚轮二次时
acSendKeys("gun lun 2 ci") --发送这些文字
end
end
2015年08月20日 10点08分
8
level 1
系统睡眠
acRunProgram("C:\\Windows\\System32\\rundll32.exe","powrprof.dll,SetSuspendState 0,1,0",0, 1) --sample runs Notepad, assuming it's in the location specified
2017年03月22日 12点03分
11
黑屏 acPostMessage(acFindWindow("progman",""), 0x112, 0xf170, 2)
2017年04月24日 20点04分
level 1
耳机切换音箱 (需要根据自己系统修改下按键次数,)
acRunProgram("C:\\Windows\\System32\\rundll32.exe","shell32.dll, Control_RunDLL Mmsys.cpl",0, 1) --sample runs Notepad, assuming it's in the location specified
acDelay(500)
for i=1,15 do
acDelay(200)
if(acGetExecutableName(acGetForegroundWindow())=="rundll32.exe")then
acSendKeys("{DOWN}")
acSendKeys("{DOWN}")
acSendKeys("%S")
acSendKeys("{ENTER}")
break
end
end
2017年03月22日 12点03分
12
level 1
INT转STRING
tostring(1)
string简单连接
"a".."b"
2017年04月21日 19点04分
13