WallBreaker2 / op

Windows消息模拟,gdi,dx,opengl截图,找图,找字(OCR)
MIT License
424 stars 160 forks source link

查询窗口方法的参数“class”是c#语言中的关键字,无法使用 #15

Closed jonathanpeng closed 3 years ago

jonathanpeng commented 4 years ago

long FindWindow(class,title)

jozhn commented 4 years ago
using opLib;
//省略类声明...
OpInterface op = new OpInterface();
int hwnd = op.FindWindow("", "新建文本文档.txt - 记事本");
Console.WriteLine(op.BindWindow(hwnd, "normal", "windows", "windows", 0));

很显然可以绑定,人家参数是string,怎么会有class是关键字的提示?

iceMilkAndSugar commented 3 years ago

image 这文档不是写的很清楚吗

WallBreaker2 commented 3 years ago

solved