In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "python sending qq messages bombing dog abuse friends thinking analysis". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
First
My programming environment is:
Windows 10 system
Python3.6
Remember to download win32
Pip install win32
Introduction of ideas
In fact, it is very simple.
The sentences to be sent are stored in the list
Then call it with a random module
Store random elements in the clipboard
Connect QQ
Find the specified object
Crazy output
What do you think? easy.
Start typing the code.
Import random import win32gui as an import win32con as b import win32clipboard as c msg= [] n=int (input ('how many messages do you want to send:') qq=int (input ('how many messages do you want:') for j in range (qq): m=input ('message content:') msg.append (m) name=input ('nickname:') msg_len=len (msg)-1 for i in range (naughty 1): num=random.randint (0Magnum msgendlen) c.OpenClipboard () c.EmptyClipboard () c.SetClipboardData (b.CF_UNICODETEXT) Msg [num]) c.CloseClipboard () handle=a.FindWindow (None,name) if handle! = 0: a.SendMessage (handle,770,0,0) a.SendMessage (handle,b.WM_KEYDOWN,b.VK_RETURN,0) print ('sent successfully!' , I)
That's the complete code.
Send tutorials for the first time
What's wrong with it? please include more.
The effect picture is as follows
This is the content of "python qq message bombing dog abuse friend train of thought analysis". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.