Project1
标题:
如果键盘上任意键被按下的脚本
[打印本页]
作者:
xiarongshan
时间:
2008-8-21 16:31
提示:
作者被禁止或删除 内容自动屏蔽
作者:
dbshy
时间:
2008-8-22 05:38
$gks = Win32API.new("user32", "GetKeyboardState", "p", "l")
$kb_i = Array.new(255).pack("c*")
gk = $gks.call($kb_i)
$kb_s = $kb_i.unpack('C*')
for i in $kb_s
if i == 128 or i== 129 then
p "a"
end
end
[LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1