获取本机已登录的 QQ

许多实用脚本和封装函数, 可以让您编写脚本更加便捷高效
tmplinshi
Posts: 1092
Joined: 01 Oct 2013, 14:57

获取本机已登录的 QQ

06 Oct 2014, 05:44

Code: [Select all] [Download] (Script.ahk)GeSHi © Codebox Plus

MsgBox, % GetLoggedinQQ()

GetLoggedinQQ() {
static hModule := DllCall("LoadLibrary", "Str", "GetLoggedinQQ.dll")
static _ := { base: {__Delete: "GetLoggedinQQ"} }
If !_
DllCall("FreeLibrary", "Ptr", hModule)
Else
Return DllCall("GetLoggedinQQ.dll\getkeys", "Cdecl Str")
}


GetLoggedinQQ.dll 下载地址: http://pan.baidu.com/s/1jG5iROU

GetLoggedinQQ.dll 来自 http://bbs.tyuyan.com/thread-37600-1-1.html,原文件名为 test.dll。
User avatar
RobertL
Posts: 540
Joined: 18 Jan 2014, 01:14
Location: China

Re: 获取本机已登录的 QQ

06 Oct 2014, 08:10

好东西,这种小片段非常易用,易理解。

顺带无聊下。感觉下面这样效率会高那么一点点(每次少一次!运算)..也是顺手的事。

Code: [Select all] [Download] (Script.ahk)GeSHi © Codebox Plus

If _
Return DllCall("GetLoggedinQQ.dll\getkeys", "Cdecl Str")
Else
DllCall("FreeLibrary", "Ptr", hModule)
无聊完毕..
我为人人,人人为己?
tmplinshi
Posts: 1092
Joined: 01 Oct 2013, 14:57

Re: 获取本机已登录的 QQ

06 Oct 2014, 08:18

跟着你一起无聊...

Code: [Select all] [Download] (GetLoggedinQQ.ahk)GeSHi © Codebox Plus

GetLoggedinQQ() {
static hModule := DllCall("LoadLibrary", "Str", "GetLoggedinQQ.dll")
static _ := { base: {__Delete: "GetLoggedinQQ"} }
Return _ ? DllCall("GetLoggedinQQ.dll\getkeys", "Cdecl Str")
: DllCall("FreeLibrary", "Ptr", hModule)
}
User avatar
huyaowen
Posts: 100
Joined: 28 Jul 2014, 01:15

Re: 获取本机已登录的 QQ

11 Oct 2014, 03:39

QQ截图20141011162816.png

为什么
tmplinshi
Posts: 1092
Joined: 01 Oct 2013, 14:57

Re: 获取本机已登录的 QQ

29 Oct 2014, 07:02

huyaowen wrote:
QQ截图20141011162816.png

为什么

不知道哦
tmplinshi
Posts: 1092
Joined: 01 Oct 2013, 14:57

Re: 获取本机已登录的 QQ

29 Oct 2014, 07:06

用记事本看了下 GetLoggedinQQ.dll,发现也是用 Webbrowser 控件获取的:
QQ截图20141029200525.png


用 ahk 就可以这样实现:

Code: [Select all] [Expand] [Download] (Script.ahk)GeSHi © Codebox Plus



Code: [Select all] [Expand] [Download] (Script.ahk)GeSHi © Codebox Plus

Last edited by tmplinshi on 21 Feb 2015, 19:43, edited 1 time in total.
aamii
Posts: 37
Joined: 23 May 2014, 03:50

Re: 获取本机已登录的 QQ

29 Oct 2014, 10:05

这个……,很赞!
lanjz
Posts: 1
Joined: 15 Aug 2016, 02:37

Re: 获取本机已登录的 QQ

15 Aug 2016, 03:56

前面的不能用了,修改了下

Code: [Select all] [Expand] [Download] (Script.ahk)GeSHi © Codebox Plus


Return to “脚本函数”

Who is online

Users browsing this forum: No registered users and 2 guests