幻想森林

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2546|回复: 13

[RMVX] [求助]截图存档

[复制链接]
无双修罗 该用户已被删除
发表于 2007-1-23 14:20:26 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

好人卡的 该用户已被删除
发表于 2007-1-23 17:27:35 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

90

主题

785

帖子

1278万

积分

版主

Rank: 7Rank: 7Rank: 7

积分
12786515
QQ
发表于 2007-1-23 17:32:39 | 显示全部楼层
正在研究中,但是我想把10个存档+5个自动存档+截图存档找出概念重新写一个。。。

对了,只要有把图片保存下来的方法就可以实现截图存档的功能。
回复 支持 反对

使用道具 举报

24

主题

103

帖子

1145

积分

⑥精研

积分
1145
QQ
发表于 2007-1-23 23:25:59 | 显示全部楼层
感觉这是不可能完成的任务~~~谁能做到的~~~佩服得五体投地~~~ [s:7]
[fly]~☆ō☆~我的愛~l☆ve為了燕而存在`從過去*到未來~☆ō☆~[/fly]
回复 支持 反对

使用道具 举报

88

主题

5419

帖子

214748万

积分

版主

S素世上最伟大最华丽

Rank: 7Rank: 7Rank: 7

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

使用道具 举报

好人卡的 该用户已被删除
发表于 2007-1-23 23:46:29 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

好人卡的 该用户已被删除
发表于 2007-1-23 23:59:03 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

88

主题

5419

帖子

214748万

积分

版主

S素世上最伟大最华丽

Rank: 7Rank: 7Rank: 7

积分
2147483647
QQ
发表于 2007-1-24 00:00:43 | 显示全部楼层
sorry~忘记发了~~==啊~
回复 支持 反对

使用道具 举报

88

主题

5419

帖子

214748万

积分

版主

S素世上最伟大最华丽

Rank: 7Rank: 7Rank: 7

积分
2147483647
QQ
发表于 2007-1-24 00:03:12 | 显示全部楼层
传啊传啊传~
PS.貌似S打的zip包好人卡用不了...?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 支持 反对

使用道具 举报

好人卡的 该用户已被删除
发表于 2007-1-24 00:15:19 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|幻想森林

GMT+8, 2025-6-26 14:59 , Processed in 0.017167 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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