I have been playing around with the WinAPI and RGSS3 for a while and I stumbled upon a script I wanted to make, though, there's a small problem on it. Using the 'RGSS Player' gives me an exact 544 x 416 snapshot, however, changing it to 'RGSS3 Player' somehow diverts the snapshot into a different x and y, capturing only a portion of the screen.
Here's what I am talking about:
def self.screenshot_game_sc prtsc_screenshot = Win32API.new('screenshot.dll', 'Screenshot', %w(l l l l p l l), '') window = Win32API.new('user32', 'FindWindowA', %w(p p), 'l') ini = (Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l') ace_game_name = "\0" * 256 ini.call('Game', 'Title', '', ace_game_name, 255, '.\Game.ini') ace_game_name.delete!('\0') win = window.call('RGSS Player', ace_game_name) dir = Dir.new("Screenshots/") count = 0 dir.entries.each {|i| count += 1} ace_file_name = "Screenshots/shot#{count}.png" prtsc_screenshot.call(0, 0, 544, 416, ace_file_name, win, 2) endHere's how this works, using a dll, this should work exactly as I want it to be, but whenever I do use RGSS3 player, it doesn't seem to work that much as I wanted. Is there a difference of how I should use the Win32API for the RGSS3?