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