一、程序效果 自动打开胖东来小程序,自动购物 二、实现 先截屏,然后利用opencv库识别下一步按键所在位置,然后使用mouse_event控制鼠标,模拟人的动作 第一步,截取屏幕 static Bitmap CaptureScreen() { int screenWidth = Screen.PrimaryScreen.Bounds.Width; int screenHeight = Screen.PrimaryScreen.Bounds.Height; Bitmap screenshot = new Bitmap(screenWidth, screenHeight); using (Graphics graphics = Graphics.FromImage(screenshot)) { graphics.CopyFromScreen(0, 0, 0, 0, new System.Drawing.Size(screenWidth, screenHeight)); } return screenshot; } 第二步,利用opencv库识别出位置 微信主界面如下...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with out
Contact out, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack