Hi,

This is some code, I don't know if it is what you want. It use the win32 ShowWindow function.

Code:
#include <acknex.h>
#include <default.c>
#include <windows.h>

void do_minimize()
{
	wait(-2);
	ShowWindow(hWnd, SW_MINIMIZE);	// minimize
	wait(-2);
	ShowWindow(hWnd, SW_RESTORE);		// restore
	wait(-2);
	ShowWindow(hWnd, SW_MAXIMIZE);	// maximize
	wait(-2);
	ShowWindow(hWnd, SW_RESTORE);		// restore
	wait(1);
	error("Finished");
}

void main()
{
	wait(1); // wait for hWnd to be valid
	level_load("");
	
	do_minimize();
}





Best regards.