| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 0 | 
 
| 积分 | 1 | 
 
| 经验 | 5060 | 
 
| 最后登录 | 2014-5-10 | 
 
| 在线时间 | 2 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 2 小时
 
        - 注册时间
 - 2006-11-7
 
        - 帖子
 - 170
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
 
 
 
-  if $myfirst == nil
 
 -      
 
 -       $myfirst = 'myGod'  
 
 -       宽度=1024
 
 -       高度=768
 
 -       游戏ini名=".\\Game.ini"
 
 -       val = "\0"*256
 
 -       gps = Win32API.new('kernel32', 'GetPrivateProfileString','pppplp', 'l')
 
 -       gps.call("Game", "Title", "", val, 256, 游戏ini名)
 
 -       val.delete!("\0")
 
 -       title = val
 
 -       fw = Win32API.new('user32', 'FindWindow', 'pp', 'i')
 
 -       hWnd = fw.call("RGSS Player", title)
 
 -       swp = Win32API.new('user32', 'SetWindowPos', 'lliiiii', 'i')
 
  
-       pointwds = [0,0,0,0].pack('llll')
 
 -       pointcet = [0, 0].pack('ll')
 
  
-       wdsrect = Win32API.new('user32.dll', 'GetWindowRect', 'lp', 'l')
 
 -       client_screen = Win32API.new("user32", "ClientToScreen", 'ip', 'i')
 
  
-       wdsrect.call(hWnd,pointwds)
 
 -       client_screen.call(hWnd, pointcet)
 
  
-       wds = pointwds.unpack('llll')
 
 -       cet = pointcet.unpack('ll')
 
  
-       addw =  wds[2] - wds[0] - 640
 
 -       addh =  wds[3] - wds[1] - 480
 
  
-       x = wds[0] - (宽度 - 640) / 2
 
 -       y = wds[1] - (高度 - 480) / 2
 
  
-       swp.call(hWnd, 0, x, y, 宽度 + addw, 高度 + addh, 0x20)
 
 -      
 
 -     end 
 
  复制代码 
使用这个脚本后 
为什么实际可以使用的部分没变呢  版务信息:版主帮忙结贴~ |   
 
 
 
 |