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.