Code:
The console that I just made didn't move (both playtest and from opening the game itself). I also tried it with the game window but it also didn't move. Anybody know the problem? Thanks in advance :) hwnd = Win32API.new('user32.dll', 'FindWindow', 'PP','N').call(0, game_title) Win32API.new('kernel32.dll', 'AllocConsole', '', '').call Win32API.new('kernel32.dll', 'SetConsoleTitle', 'P', '').call(game_title + ': Message Console') cons = Win32API.new('user32.dll', 'FindWindow', 'PP','N').call(0, game_title + ': Message Console') $stdout.reopen('CONOUT$') Win32API.new('user32.dll', 'SetForegroundWindow', 'P', '').call(hwnd) Win32API.new('user32.dll','SetWindowPos','PPPPPP','').call(cons,hwnd,0,0,544,416)