$value = InputBox("检测QQ是否已经登陆", "不支持QQ2008及更老版本"&@CR&"请输入QQ号码", "")
if $value = "" then exit
$objWMIService = ObjGet("winmgmts:\" & "." & "\root\CIMV2")
$colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_Process")
For $objItem In $colItems
local $processData = ($objItem.Caption & "|" &$objItem.Handle &"|" &$objItem.CommandLine)
if $objItem.Caption = "qq.exe" then
$exc = StringReplace($objItem.CommandLine,'"', '')
$exc = StringLeft($exc,StringInStr($exc, "\bin\qq.exe"))&"Users"&$value
If FileExists($exc&"\MicroBlogMsg.db") Then
if FileCopy($exc&"\MicroBlogMsg.db",@TempDir&$value,1) = 0 then
msgbox(0,"","QQ:"&$value&" 已登陆!")
else
FileDelete(@TempDir&$value)
endif
exit
EndIf
endif
Next
|