|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
紫苏发布了两个帖子
XP的http://rpg.blue/forum.php?mod=vi ... 0%E8%BF%90%E8%A1%8C
VX的http://rpg.blue/forum.php?mod=vi ... 0%E8%BF%90%E8%A1%8C
公开一下本人在ACE上的测试代码吧:- unless $_Start
- $_Start = Win32API.new("System/BackgroundRunning","Start",'V','L')
- $_Stop = Win32API.new("System/BackgroundRunning","Stop",'V','L')
- $_OnFocus = Win32API.new("System/BackgroundRunning","OnFocus",'V','L')
- $_Start.call
- module Input
- InputUpdate = method :update
- InputTrigger = method :trigger?
- InputPress = method :press?
- InputRepeat = method :repeat?
- InputDir4 = method :dir4
- InputDir8 = method :dir8
- def self.update
- InputUpdate.call if $_OnFocus.call != 0
- end
- def self.trigger?(num)
- return $_OnFocus.call != 0 ? InputTrigger.call(num) : false
- end
- def self.press?(num)
- return $_OnFocus.call != 0 ? InputPress.call(num) : false
- end
- def self.repeat?(num)
- return $_OnFocus.call != 0 ? InputRepeat.call(num) : false
- end
- def self.dir4
- return $_OnFocus.call != 0 ? InputDir4.call : 0
- end
- def self.dir8
- return $_OnFocus.call != 0 ? InputDir8.call : 0
- end
- end
- end
复制代码 其实我是把VX的那个BackgroundRunning.dll拷贝到VA的那个System文件夹下,发现完全兼容。
如果这么简单的话,我直接通知紫苏去掉一个帖子,把另一个帖子改成通用技术发布就可以了,但是我想,
rgss3可以在后台显示主控台了,当游戏中有Print命令时,后台的主控台就直接显示了,所以我想问问高手是不是rgss3本身就整合了后台运行功能呢?是不是可以通过别的方法不需要那个dll就可以开启后台运行呢? |
|