QQ online status check script (20141022 test successful), online status 20141022

Source: Internet
Author: User

QQ online status check script (20141022 test successful), online status 20141022

Import time, datetime import urllib2 def chk_qq (qqnum): chkurl = 'HTTP: // wpa.paipai.com/pa? P = 1: '+ 'qqnum' +': 17'a = urllib2.urlopen (chkurl) length =. headers. get ("content-length"). close () print datetime. datetime. now () print length if length = '000000': return 'line' elif length = '000000': return 'offline' else: return 'unknown Status! 'Def writestate (statenow): f = open (str (qq), 'A') m = str (datetime. datetime. now () + "= state =" + statenow + "\ n \ r" f. write (m) f. close () qq = 12345678 # state = 1if _ name __= = '_ main _': while 1: stat = chk_qq (qq) writestate (stat) time. sleep (6000) # print 'qq' + 'is' + stat once every 5 minutes

  


In QQ Web products, how does one automatically detect online QQ in the machine and quickly log on to it? It can provide a better JAVA address or some script source code.

Activex will be installed when you install qq. Qq passed this reality...

If the script genie detects that QQ is running and executes something that is not running, close the script. How can I write these two paragraphs?

You can use the area to find the designated color of the image. It is not necessary to make it so complicated. Also, Endif is not end.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.