Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use sikuli to realize Wechat automatically grabbing Red packet

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to use sikuli to achieve Wechat automatically grab red packets, the editor feels very practical, so share with you to learn, I hope you can get something after reading this article, say no more, follow the editor to have a look.

I came across a graphic automation tool called Sikuli in my work and borrowed it.

[the effect is as follows]

[realization principle]

1. Give a brief introduction to Sikuli software first.

Sikuli itself associates the corresponding graphics with the user's operations through graphic recognition.

The interface is roughly as follows:

Through custom functions, you can achieve user operations, such as find to find a picture; click to achieve mouse click operation. From my personal feeling, I can simulate all the interface automation.

2. Sikuli installation:

Sikuli software installation is also free, and there are two ways to do it.

(1) download from Sikuli official website: https://launchpad.net/sikuli/+download. Of course, you need to install JDK version 8.0 or later. It can then be downloaded online via sikulixsetup-1.1.3.jar.

At the beginning of the installation, select 1 and 2, and use the default options for the rest.

(2) Sikuli is free to download from the Internet: due to the poor network at home, it cannot be downloaded through the Internet. So I found a download-free installation package.

Https://dl.pconline.com.cn/download/812455.html

3. The realization of Wechat grabbing red packets:

(1) problem 1: you can't see red packets on the desktop version of Wechat.

Because the sikuli software runs on window, I initially installed the desktop version of Wechat. But found that the desktop version of Wechat can not see red packets, and can not send red packets.

Solution:

I often watch all kinds of anchors play mobile games, so I thought of using Wechat through Android simulator.

Unexpectedly, one day, I solved the problem because I usually like to watch live, . By the way, I use a lightning simulator.

(2) problem 2: the number of Sikuli is too small to optimize its functions, such as not dealing with red packets.

Because Sikuli has few functions, only some basic buttons such as find, compare, click, right click, double click, drag and drop, so there is no research on the optimization of Wechat grabbing red packets for the time being.

From other blogs, I have seen that it is possible to use python selenium in combination with sikuli, so we will learn about it next time.

(3) problem 3: at present, the code does not realize the function of automatically logging in to Wechat, so users are required to log in to Wechat on the lightning simulator in advance.

[sample code]

Recently, I found that a lot of materials on CSDN need points for downloading, so I uploaded the source code to the CSDN website in exchange for points.

Sikuli software is still very simple and can be started quickly by yourself.

The above is how to use sikuli to achieve Wechat automatically grab red packets, the editor believes that there may be some knowledge that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report