1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
String[] links = { linkurl, fburl, twurl, neturl };
int[] xs = { linkwidth, fbwidth, twwidth, netwidth };
int[] ys = { linkheight, fbheight, twheight, netheight };
int[] ws = { linkboxdim, fbboxdim, twboxdim, netboxdim };
int[] hs = { linkboxdim, fbboxdim, twboxdim, netboxdim };
int pos = 0;
foreach (String link in links)
{
ProcessStartInfo psi = new ProcessStartInfo(browser, ieparameter + " " + link);
processesList.Add(Process.Start(psi));
Thread.Sleep(1000);
IntPtr id = GetForegroundWindow();
//MessageBox.Show("lien : " + link.ToString());
MoveWindow(id,xs[pos],ys[pos],ws[pos],hs[pos],true);
pos++;
} |
Partager