include the windows.h and use:
SendMessage(hWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);

example:
Code:
#include <acknex.h>
#include <windows.h>

function main()
{
	wait(1);
	SendMessage(hWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
}