火星守望者
精华
|
战斗力 鹅
|
回帖 0
注册时间 2007-5-12
|
本帖最后由 放大镜 于 2026-10-22 23:55 编辑
试了下AI,真的省事,直接在卧龙里边实现了仁王3逻辑下的跳转翻页功能
仅作思路分享,具体自定义可以请AI代劳
; AutoHotkey v1.1.33.10
; 卧龙:苍天陨落 奇术+绝技扩展(Alt+E 映射为 F)
#SingleInstance Force
SetBatchLines, -1
SendMode Input
#IfWinActive ahk_exe wolong.exe
; ===== 全局映射 =====
; Alt+E → F(仅在卧龙窗口内生效)
!e::
Send {Blind}{F down}
Sleep 60
Send {Blind}{F up}
return
; ===== 奇术扩展 =====
XButton2::
SendEvent {XButton2 down}{XButton2 up}
return
!1::
SendEvent {XButton2 down}{XButton2 up}
Sleep 60
SendEvent {1 down}{1 up}
Sleep 60
SendEvent {XButton2 down}{XButton2 up}
return
!2::
SendEvent {XButton2 down}{XButton2 up}
Sleep 60
SendEvent {2 down}{2 up}
Sleep 60
SendEvent {XButton2 down}{XButton2 up}
return
!3::
SendEvent {XButton2 down}{XButton2 up}
Sleep 60
SendEvent {3 down}{3 up}
Sleep 60
SendEvent {XButton2 down}{XButton2 up}
return
!4::
SendEvent {XButton2 down}{XButton2 up}
Sleep 60
SendEvent {4 down}{4 up}
Sleep 60
SendEvent {XButton2 down}{XButton2 up}
return
; ===== 绝技扩展 =====
; 绝技翻页键:5
z::
Send {Blind}{5 down}
Sleep 60
Send {Blind}{5 up}
Sleep 60
Send {Blind}{XButton1 down}{LButton down}
Sleep 60
Send {Blind}{LButton up}{XButton1 up}
Sleep 60
Send {Blind}{5 down}
Sleep 60
Send {Blind}{5 up}
return
c::
Send {Blind}{5 down}
Sleep 60
Send {Blind}{5 up}
Sleep 60
Send {Blind}{XButton1 down}{RButton down}
Sleep 60
Send {Blind}{RButton up}{XButton1 up}
Sleep 60
Send {Blind}{5 down}
Sleep 60
Send {Blind}{5 up}
return
; R:绝技3(翻页5 → F → 翻页5)
r::
Send {Blind}{5 down}
Sleep 60
Send {Blind}{5 up}
Sleep 120
Send {Blind}{F down}
Sleep 60
Send {Blind}{F up}
Sleep 120
Send {Blind}{5 down}
Sleep 60
Send {Blind}{5 up}
return
#IfWinActive
翻译如下
游戏内键位:绝技1、2、3分别对应鼠标4+左键、鼠标4+右键,F / 奇术=1234 / 绝技翻页键=5,奇术翻页键=鼠标5 / 防御=alt
ahk脚本功能:alt+E=F(当前页绝技3)/ Z、C、R=直接使用第二页绝技1、2、3 / alt+1234=直接使用第二页奇术1234
绝技3用alt+E=F绕一圈,是因为系统会在相关按键无任何游戏内绑定功能的情况下,把对应操作识别为闪避,也就是两次连续化劲,非常神秘,我自己写跟AI写都有这个问题
这下总算是有点现代化的感觉了
|
|