Int_ExecProgram, Int_ExecProgramWait, Int_ExecuteCommand, Int_ExecuteMacro, Int_FindDifferentApp
Description
int Int_ExecProgram(
char *Int_str1
);
This function executes another program specified by its name.
// Int_ExecProgram example - LIM switch utility SW350.EXE will be called. char filename[256]; char *ptr; int retval; SetCommandText("Working..."); Int_CreateTextWindow("API Example - Int_ExecProgram",0,RGB(0,0,128),RGB_WHITE,100); Get_Filename(FILE_EXECUTABLE,filename); ptr = strrchr(filename, '/'); if(ptr != NULL) *ptr = 0; else goto end; strcat(filename, "/sw350.exe"); retval = ExistFile(filename); if(retval == TRUE) Int_ExecProgram(filename); else WaitText(0., "LIM Switch utility not found"); end: Int_CloseTextWindow();
Note
If the program is already loaded, the function will set focus to this application. No more instances will be loaded.
Description
Int_ExecProgramWait(
char *Int_str1
);
This function executes another program and waits until it finishes. See also Int_ExecProgram.
char txt[1000]; char ImageJ[260] = "$C:\Fiji.app\ImageJ-win32.exe$"; char ImageJmacro[260] = "$nis.ijm$"; strcat(txt, ImageJ); strcat(txt, " -batch "); strcat(txt, ImageJmacro); StrExchangeChar(txt, 34, 36); WaitText(0, txt); Int_ExecProgramWait(txt); WaitText(0, "DONE");
Description
int Int_ExecuteCommand( intInt_AppId
, char *Lp_Command
);
This function executes a command in a selected application.
Parameters
See Also
Int_ExecuteMacro, Int_FindDifferentApp
Description
int Int_ExecuteMacro( intInt_AppId
, char *Lp_Macro
);
This function executes a macro in a selected application.
Parameters
See Also
Int_ExecuteCommand, Int_FindDifferentApp
Description
int Int_FindDifferentApp();
This function returns the application ID of another running instance of the same application.
See Also
Int_ExecuteMacro, Int_ExecuteCommand