Project1

标题: F8截图脚本有没有 [打印本页]

作者: 纷纷雪    时间: 2012-4-14 01:50
标题: F8截图脚本有没有
F8截图脚本有没有dsu_plus_rewardpost_czw
作者: 腐琴琴    时间: 2012-4-14 08:46
本帖最后由 腐琴琴 于 2012-4-14 08:50 编辑

理论上应该有……

我只知道一个傻傻的方法:
找一个截图脚本,然后找到执行的命令。
接下来用并行处理的公共事件,当F8被按下时执行。

===================================
这两个东西是截图范例脚本送的,截图必备物:


公共事件用并行处理,游戏的时候打开开关(但我怀疑会卡的囧囧的)
调节分歧的语句嘛也可以随便改的吧?F8改成别的也可以吧……
然后中间是截图脚本范例里面送的执行语句


这个是把范例里面的脚本COPY过来然后加上公共事件了
Project10.rar (893.56 KB, 下载次数: 149)


然后这个就是主站上面的脚本了……
PHP 代码复制
  1. #===============================================================================
  2. #
  3. # Screenshot V2
  4. #
  5. # Screenshot Script v1 & screenshot.dll v1            created by: Andreas21
  6. # Screenshot Script v2                                created/edit by: cybersam
  7. # the autor is found on a german board...
  8. # the comments are added by me...
  9. # since the autor didnt want to add any comment...
  10. # so thats it from here...
  11. # have fund with it... ^-^
  12. #
  13. # oh yea.. the needed command line is found in "Scene_Map" in "def update"
  14. #
  15. #===============================================================================
  16. module Screen  
  17.   @screen = Win32API.new 'screenshot', 'Screenshot', %w(l l l l p l l), ''
  18.   @readini = Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l'
  19.   @findwindow = Win32API.new 'user32', 'FindWindowA', %w(p p), 'l'
  20.   module_function
  21.   #-----------------------------------------------------------------------------
  22.   # here comes the stuff...
  23.   # i add here the stuff for automatic change of the number for the screenshot
  24.   # so it wont overrite the old one...
  25.   # if you want to change so stuff change them in this line below
  26.   # or you can change them in your command line... like
  27.   # Screen::shot("screenshot", 2)
  28.   # this change the name and the type of the screenshot
  29.   # (0 = bmp, 1 = jpg and 2 = png)
  30.   # ----------------------------------------------------------------------------
  31.   def shot(file = "screenshot", typ = 2)
  32.     # to add the right extension...
  33.     if typ == 0
  34.       typname = ".bmp"
  35.     elsif typ == 1
  36.       typname = ".jpg"
  37.     elsif typ == 2
  38.       typname = ".png"
  39.     end   
  40.     file_index = 0   
  41.     dir = "Graphics/Pictures/"   
  42.     # make the filename....
  43.     file_name = dir + file.to_s + typname.to_s   
  44.     # make the screenshot.... Attention dont change anything from here on....
  45.     @screen.call(0,0,640,480,file_name,handel,typ)
  46.   end
  47.   # find the game window...
  48.   def handel
  49.     game_name = "\0" * 256
  50.     @readini.call('Game','Title','',game_name,255,".\\Game.ini")
  51.     game_name.delete!("\0")
  52.     return @findwindow.call('RGSS Player',game_name)
  53.   end
  54. end


那啥截图的位置这里要改就改吧。
dir = "Graphics/Pictures/


作者: 纷纷雪    时间: 2012-4-14 14:51
万分感谢


‘‘──纷纷雪于2012-4-14 18:13补充以下内容

把图保存在这个位置是吗  Graphics/Pictures   
’’




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1