Strikers 1945 II,MAME64,使用AutoHotKey 实现自动连发

in #cn7 years ago (edited)

0002.png

首先,配置文件需要把keyboardprovider设置成dinput
最好是独立为游戏创建一个配置文件放在mame主目录
20180210114223.png

编写AutoHotKey脚本:


2Joy5:: ; 定义第二Joystick的按钮5为自动连发键
while GetKeyState("2Joy5", "P") ; 当 2Joy5 键实际被按住时
{
send {Space down}{Space up}
sleep 50 ; 连发间隔50ms
}
return

mame里面添加定义空格键为button1
测试一下
0003.png
perfect!!

最后,做个ICON把脚本做成exe,呵呵 20180210114843.png

Sort:  

Hi ~ I'm a robot of januschoi.I just upvoted your post!
Please come visit me here: https://steemit.com/@januschoi
Thanks so much~!!

Hi ~ I'm a robot of lynnhua.I just upvoted your post!
Please come visit me here: https://steemit.com/@lynnhua
Thanks so much~!!