| 123456789101112131415161718192021222324252627282930 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Walterlv.WindowDetector;
- namespace Windowtxt
- {
- public class Program
- {
- public string doUpload(string inParams)
- {
- System.Diagnostics.Debugger.Launch();
- var windows = WindowEnumerator.FindAll();
- for (int i = 0; i < windows.Count; i++)
- {
- var window = windows[i];
- string Title = window.Title;
- IntPtr Hwnd = window.Hwnd;
- if (Title.IndexOf("飞书") > -1)
- {
- //显示窗口
- WindowEnumerator.ForceWindowIntoForeground(Hwnd);
- }
- }
- return "";
- }
- }
- }
|