Get the App
SLTechnology News&Howtos  ›  Development  › 

Analysis on the thought of bombing friends who abuse dogs by sending qq messages from python

Shulou Source: shulou.com Published: 2022-06-02 17:59:15 09月16日 Update

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!

Tags: News content ideas friends analysis bombing code more knowledge output practicality success madness success and then bad elements clipboard sentences dilemma Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple macOS Microsoft NVidia