设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
楼主: Sion
打印 上一主题 下一主题

[RMVA发布] 多功能 DLL SiNova v10015【6/9更新鼠标脚本】

[复制链接]

Lv3.寻梦者

梦石
0
星屑
2111
在线时间
950 小时
注册时间
2015-7-16
帖子
767

开拓者

1
发表于 2016-4-20 18:00:59 | 显示全部楼层
sion 大
API_.call 'SiNova|BackGroundRun|i|v', 1 調用後台運行後
會讓一個F12修正腳本當機,使視窗黑掉,沒跳任何反應
希望能整合一下相容性,使後台運行也能應用F12 bitmap 釋放修正
  1. #==============================================================================
  2. #   ** F12 Reset Fix
  3. #   Author: Acezon
  4. #   Date: 2 June 2013
  5. #------------------------------------------------------------------------------
  6. #   Version 2.1
  7. #   - Fixed issue where game window is not in focus
  8. #     when Console_on is set to false
  9. #   - Now compatible with Tsuki's Test Edit script
  10. #   Version 2.0
  11. #   - Console option added
  12. #   - Automatically focuses window after pressing F12
  13. #   Version 1.1
  14. #   - Respawning the exe was better
  15. #   Version 1.0
  16. #   - Initial Release
  17. #------------------------------------------------------------------------------
  18. #   Just credit me. Free to use for commercial/non-commercial games.
  19. #   Thanks to Tsukihime and Cidiomar for the console scriptlet
  20. #==============================================================================

  21. $imported = {} if $imported.nil?
  22. $imported["Acezon-F12ResetFix"] = true

  23. #==============================================================================
  24. # ** START Configuration
  25. #==============================================================================
  26. module Config
  27.   Console_on = false       # duh
  28. end
  29. #==============================================================================
  30. # ** END Configuration
  31. #==============================================================================

  32. alias f12_reset_fix rgss_main
  33. def rgss_main(*args, &block)
  34.   f12_reset_fix(*args) do
  35.     if $run_once_f12
  36.        #pid = spawn ($TEST ? 'Game.exe test' : 'Game')
  37.        pid = spawn ($TEST ? 'Game.exe test' : 'Game.exe')
  38.       # Tell OS to ignore exit status
  39.       Process.detach(pid)
  40.       sleep(0.01)
  41.       exit
  42.     end
  43.     $run_once_f12 = true
  44.     # Run default rgss_main
  45.     block.call
  46.   end
  47. end

  48. module SceneManager
  49.   class << self
  50.     alias :acezon_f12_first :first_scene_class
  51.   end

  52.   def self.first_scene_class
  53.     focus_game_window
  54.     acezon_f12_first
  55.   end

  56.   def self.focus_game_window
  57.     # Just to prevent re-spawning the console since
  58.     # Tsuki uses this same part in his Test Edit script
  59.     if !$imported["TH_TestEdit"]
  60.       # Get game window text
  61.       console_w = Win32API.new('user32','GetForegroundWindow', 'V', 'L').call
  62.       buf_len = Win32API.new('user32','GetWindowTextLength', 'L', 'I').call(console_w)
  63.       str = ' ' * (buf_len + 1)
  64.       Win32API.new('user32', 'GetWindowText', 'LPI', 'I').call(console_w , str, str.length)

  65.       if Config::Console_on
  66.         # Initiate console
  67.         Win32API.new('kernel32.dll', 'AllocConsole', '', '').call
  68.         Win32API.new('kernel32.dll', 'SetConsoleTitle', 'P', '').call('RGSS3 Console')
  69.         $stdout.reopen('CONOUT)
  70.       end
  71.     end
  72.   end
  73. end
复制代码

点评

附註,直接用這腳本不會出錯,不過當某些腳本需要F12腳本來幫忙修正後,後台運行會讓畫面黑掉但不跳出任何錯誤訊息  发表于 2016-4-20 18:02
[神性领域扩张:扩张神性领域]
说了等于没说.
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2111
在线时间
950 小时
注册时间
2015-7-16
帖子
767

开拓者

2
发表于 2017-2-8 16:43:59 | 显示全部楼层
Vortur 发表于 2016-1-5 09:15
感谢楼主的脚本!!

能否提供一个可以关闭鼠标脚本的代码呢?

這衝突後來解決了嗎?  我也發生了相同的錯誤,有無解方可提供?
[神性领域扩张:扩张神性领域]
说了等于没说.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-13 11:59

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表