01-26-2026, 07:26 AM
The following code can run successfully in LINQPad 8, but after it finishes executing, the icon still remains in the system tray (bottom-right of the taskbar). I have to manually exit/close the icon before I can run it again.
Is this normal behavior?
I need the icon to no longer be displayed after the script finishes executing.
Is this normal behavior?
I need the icon to no longer be displayed after the script finishes executing.
//.
script.setup(trayIcon: true, sleepExit: true);
//..
keys.send("Win+M");
for (int i = 0; i < 3; i++)
{
using (opt.scope.all())
{ //recorded
opt.mouse.MoveSpeed = opt.key.KeySpeed = opt.key.TextSpeed = 20;
var w1 = wnd.find(0, "Program Manager", "Progman");
mouse.doubleClick(w1, 50, 20);
mouse.click(w1, 50, 20);
var w2 = wnd.find(10, "此电脑", "CabinetWClass");
mouse.click(w2, 68, 164);
w2.WaitForName(30, "文档");
mouse.doubleClick(w2, 235, 225);
w2.WaitForName(30, "leidian9");
mouse.click(w2, 1088, 19);
}
}
keys.send("Win+Shift+M");