同事发来这段代码,大佬可以看看自己能不能实现
---------------------------------------------------------------------
// 引用必要的命名空间
using System.Windows.Forms;
// Quicker将会调用的函数
public static void Exec(Quicker.Public.IStepContext context)
{
string allInfo = "Screen Info: \n";
// For each screen, add the screen properties to a list box.
foreach (var screen in System.Windows.Forms.Screen.AllScreens)
{
allInfo += screen.DeviceName + "\n";
allInfo += screen.Bounds.ToString() + "\n";
// allInfo += screen.WorkingArea.ToString() + "\n\n";
}
context.SetVarValue("text", allInfo);
----------------------------------------------------------------------