module Console def make game_title = "Phantasma Novus - Gunslingers of Dawn" 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$') cons = Win32API.new('kernel32', 'GetConsoleWindow', 'V', 'L').call #This next lines show the console window at the 0,0 position with a size of 640,416 #.call(console,parent_window,x,y,width,height,flag) Win32API.new('user32.dll','SetWindowPos','LLLLLLL','L').call(cons,hwnd,0,0,640,416,0) Win32API.new('user32.dll', 'SetForegroundWindow', 'P', '').call(hwnd) endend