C # Writing a QQ message mass device

Source: Internet
Author: User

First on the software finished diagram

Functional writing is roughly divided into the following sections:

Get QQ Group

Send Message

First of all, to send a message, implementation or relatively simple

This section is primarily used to open the session window (only friends in the list can have sessions) System.Diagnostics.Process.Start ("tencent://message/?"). Menu=yes&uin= "+ QQ number to send +" &site=itbulu&service=300&sigt= 45a1e5847943b64c6ff3990f8a9e644d2b31356cb0b4ac6b24663a3c8dd0f8aa12a595b1714f9d45 ");

With the above paragraph, we can send the operation, paste the message sent, exit the session box, perform the next session QQ

Of course, the middle is the need for threading. Sleep, or else the window may not have been opened to execute the exit command

So the original message mass version is manually added to send QQ number, but later to friends use, get feedback: list QQ too much, export QQ number trouble

(This is the first edition)

Get feedback, I began to study how to get a friend's QQ, find a lot of information, are not go through, and later found that space has such an interface

So the simulation login QQ space, get G_TK, with G_TK, you can go to call that interface.

https://h5.qzone.qq.com/proxy/domain/r.qzone.qq.com/cgi-bin/tfriend/friend_show_qqfriends.cgi?uin={0}& Follow_flag=1&groupface_flag=0&fupdate=1&g_tk={1}

{0} is the QQ number; {1} is G_TK

By visiting this will be able to get to QQ under the information of all friends (avatar, QQ number, nickname ....) )

Filter to get data from JSON

The next is trivial data manipulation and binding.

However, it is not convenient and quick to send the message by opening the session window, then we will study the way to get it by SMARTQQ.

C # Writing a QQ message mass device

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.