A simple, send WeChat message multiple times

A simple, send WeChat message multiple times

the code

Code can be written in text files. After saving and exiting, change the file suffix to .vbs

Set WshShell=WScript.CreateObject("WScript.Shell")
for i=1 to 10
WScript.Sleep 1000
WshShell.SendKeys "^v"
WshShell.SendKeys i
WshShell.SendKeys "%s"
Next

Code analysis:

"for i=1 to 10" means the number of times the information is sent, and 10 means that the information is sent 10 times, please modify it according to the situation.

"WScript.Sleep 1000" means the interval time of each piece of information, 1000 means 1000 milliseconds, 1000 milliseconds = 1 second.

The code "WshShell.SendKeys i" is used to record the number of times information is sent and can be deleted.

use

Open WeChat, find the object that needs to be sent multiple times, right-click, and select "Open in a separate window" in the right-click menu. The main purpose is to prevent operation errors from causing errors in the sending object.

Enter the content to be sent in the WeChat input box, then right-click to select the content and copy it.

Open the previously saved .vbs file, then quickly switch to WeChat, and click on the object to be sent to automatically send WeChat messages multiple times.

After operating it once, you will find that this code implements the paste function of "Ctrl + V". Just turn repetitive manual operations into automatic computer operations.

Guess you like

Origin blog.csdn.net/qq_55342245/article/details/131411726