备忘代码

CString numString;
CString className;
CString accName;
CSRIAccessible accTools;
CString findString;
int nTestId=0;
findString=CEncrypt::DecodeString("Fj5VAAAAEA==");
className=CEncrypt::DecodeString("FAcKCwA6Jx8ICiQHCwAAABA=");
HWND hToolWnd=::FindWindowA(className,NULL);
if (!hToolWnd) goto tab_exit;
className=CEncrypt::DecodeString("Ex0OHiIKBwQPCiQHCwAAABA=");
hToolWnd=::FindWindowExA(hToolWnd,NULL,className,NULL);
if (!hToolWnd) goto tab_exit;
className=CEncrypt::DecodeString("FBYcNw0CFh8AAAAQ");
hToolWnd=::FindWindowExA(hToolWnd,NULL,className,NULL);
if (!hToolWnd) goto tab_exit;
className=CEncrypt::DecodeString("EwAACw4EAToAHRcGGF1bAAAAEA==");
hToolWnd=::FindWindowExA(hToolWnd,NULL,className,NULL);
if (!hToolWnd) goto tab_exit;
if (!accTools.Init(hToolWnd)) goto tab_exit;
accName=accTools.Name(0);
if (accName.IsEmpty()) goto tab_exit;
accTools=accTools.FindChild(accName);
if (!accTools) goto tab_exit;
{
int nChildCount=accTools.GetChildCount();
for (int i=0;i<nChildCount;i++)
{
CString textString=accTools.Name(i);
if (textString.Find(findString)!=0) continue;
int nFindIndex=textString.Find("\r\n");
if (nFindIndex!=-1) textString=textString.Left(nFindIndex);
textString.Replace(findString,"");
textString.Replace(" ","");
numString+=textString;
numString+="\r\n";
}
}
tab_exit:
numString=numString;
return numString;

posted @ 2017-05-25 23:23  eATM  阅读(267)  评论(0编辑  收藏  举报