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

Project1

 找回密码
 注册会员
搜索
查看: 1792|回复: 2
打印 上一主题 下一主题

[已经解决] F8截图脚本有没有

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
40 小时
注册时间
2012-3-31
帖子
78
跳转到指定楼层
1
发表于 2012-4-14 01:50:55 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
F8截图脚本有没有
全国最好的RPG论坛
44rpg.uueasy.com

Lv1.梦旅人

梦石
0
星屑
50
在线时间
470 小时
注册时间
2010-6-25
帖子
316
2
发表于 2012-4-14 08:46:00 | 只看该作者
本帖最后由 腐琴琴 于 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/


回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
40 小时
注册时间
2012-3-31
帖子
78
3
 楼主| 发表于 2012-4-14 14:51:11 | 只看该作者
万分感谢


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

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

点评

默认的是这样的。如果你有需要可以改动。  发表于 2012-4-14 19:22
哦对了,脚本的第二句Graphics.freeze好像要删掉,不然会卡住。  发表于 2012-4-14 16:47
全国最好的RPG论坛
44rpg.uueasy.com
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-9 05:58

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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