您的足迹:首页 > 我的代码 >获取本机已登录的QQ号码ByAardio

获取本机已登录的QQ号码ByAardio

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~~~看懂了么,拿着直接用吧! 
本博客所有文章如无特别注明均为原创。作者:恶猫复制或转载请以超链接形式注明转自 恶猫的博客
原文地址《获取本机已登录的QQ号码ByAardio

相关推荐

分享本文至:

发表评论

路人甲 表情
看不清楚?点图切换 Ctrl+Enter快速提交

网友评论(0)

恶猫的博客 -记录自己日常,代码,美图,电影,音乐,新闻,只是个人博客而已

浙ICP备15011757号-4 网站地图 联系我