Hi,
You can minimize the application using an API call.
For example, the following Origin C function minimizes the Origin application and then maximized after a 10 sec delay. You could get the handle of the Origin application and then use it in your outside application to minimize Origin, like Mike suggested.
Easwar
OriginLab.
void test()
{
HWND hWnd = GetWindow();
bool bret = ShowWindow(hWnd, SW_MINIMIZE);
Sleep(10000);
bret = ShowWindow(hWnd, SW_NORMAL);
}
Note: You will need to add the following to the header file mswin.h in the \OriginC\System subfolder for the above code to work:
#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10
#define SW_FORCEMINIMIZE 11
#define SW_MAX 11
BOOL WINAPI ShowWindow(HWND hWnd, int nCmdShow);