CODE:
test();
function test() {
int PRC[10];
string Name[1000];
int Pid[1000];
int PRCSZ = 0;
int PID;
win w[100];
int lstprc=listprocess (#Name[0], #Pid[0]);
for (int n=0; n<lstprc; n++)
{
if (Name[n]=="*******.exe") {
PID = Pid[n];
int lw = listwinprocess(#w[0], PID);
setwindowparam (w[n]);
win wind1 = w[0];
wind1.name = format(PID);
wind1.left = PRCSZ * 500;
wind1.top = 0;
wind1.height = 900;
movewindow(wind1);
PRC[PRCSZ] = Pid[n];
PRCSZ++;
}
}
}
test();
function test() {
int PRC[10];
string Name[1000];
int Pid[1000];
int PRCSZ = 0;
int PID;
win w[100];
int lstprc=listprocess (#Name[0], #Pid[0]);
for (int n=0; n<lstprc; n++)
{
if (Name[n]=="*******.exe") {
PID = Pid[n];
int lw = listwinprocess(#w[0], PID);
setwindowparam (w[n]);
win wind1 = w[0];
wind1.name = format(PID);
wind1.left = PRCSZ * 500;
wind1.top = 0;
wind1.height = 900;
movewindow(wind1);
PRC[PRCSZ] = Pid[n];
PRCSZ++;
}
}
}