import console;
FindWindow= ::User32.api("FindWindow","int(string lpClassName, string lpWindowName)");
GetWindowText = ::User32.api("GetWindowTextA","int(int hwnd,string& lpString,int cch)");
GetWindowLong= ::User32.api("GetWindow","int(int hWnd, int uCmd)");
GetClassName= ::User32.api("GetClassName","int(int hWnd, string& ClassName, int nMaxCount)");
hWin=tonumber(FindWindow("CTXOPConntion_Class", null));
if (hWin == 0){return;}
do
{
var len,title = ::GetWindowText(hWin,50,50);
title = string.left(title,len)
title = string.replace(title," ","");
strText =tostring(title);
if (string.find(strText,"OP_") == true)
{
strText = string.sub(strText,4);
console.log(strText);
}
do
{
hWin=tonumber(GetWindowLong(hWin, 2));
if (hWin == 0) {console.pause(true); return; }
var len,className=GetClassName(hWin, 50, 50);
className = string.left(className,len)
className =string.replace(className," ","");
strClass = tostring(className);
} while (strClass!="CTXOPConntion_Class");
}while(true);
console.pause(true);
so easy~~~看懂了么,拿着直接用吧!
发表评论