| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2014-4-18 |
| 在线时间 | 8 小时 |
℃ake
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 8 小时
- 注册时间
- 2009-6-6
- 回帖
- 670
|
发表于 2009-11-25 13:34:01
|
显示全部楼层
- $cake = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v'
- class << Graphics
- alias update_cake update
- def update
- update_cake
- if Kboard.keyb($R_Key_I) == 1
- $cake.call 0x26, 0, 0, 0
- $cake.call 0x26, 0, 2, 0
- end
- if Kboard.keyb($R_Key_J) == 1
- $cake.call 0x25, 0, 0, 0
- $cake.call 0x25, 0, 2, 0
- end
- if Kboard.keyb($R_Key_L) == 1
- $cake.call 0x27, 0, 0, 0
- $cake.call 0x27, 0, 2, 0
- end
- if Kboard.keyb($R_Key_K) == 1
- $cake.call 0x28, 0, 0, 0
- $cake.call 0x28, 0, 2, 0
- end
- end
- end
复制代码 |
|