globalvar ListModes, Output; Output = ""; ListModes = ds_list_create(); var width, height, bits, frequency, index, entry, time; time = current_time; index = argument0; for (bits = 16; bits < 32 + 8; bits += 8) { for (frequency = 60; frequency < 100; frequency += 10) { for (width = 640; width < 1280; width += 8) { for (height = 480; height < 1280; height += 8) { entry = "[" + string(width) + " x " + string(height) + ", " + string(bits) + ", " + string(frequency) + "]"; draw_clear(0); draw_set_color(c_white); draw_text(0, 0, "Testing: " + entry); if (displayTest(index, width, height, bits, frequency)) { //entry = "1024x600, 16 Bit, 60Hz"; ds_list_add(ListModes, entry); Output += entry + "#"; draw_text(32, 32, "SUCCESS!"); } io_handle(); screen_refresh(); //sleep(500); if (keyboard_check(vk_escape)) { if (show_question("ESCAPE?")) return Output; } } } } }