I heard that this software can play games based on picture programming?

Continued from the previous article: A Python-based automatic game play assistant
ProcessOn is a very easy-to-use mind map and flowchart online drawing tool. The top 10 registered Processon using my exclusive invitation link and successfully added 3 to me Friends of the file will give a permanent version of the clicker!
The link is here : https://www.processon.com/i/55e3d74ee4b0e4854096c282

Introduction

Clicker is a powerful mouse click software. She can help you free your hands and automatically recognize the screen content to complete some highly repetitive operations.

If you are a game lover, does playing a game for a long time take up a lot of your study, life, and sports time? Have you ever imagined that your computer can automatically play games for you? deng deng! ! Seeing me, you can play games with your sister, not far from your dreams~~

This software is suitable for games that can be operated only by clicking the mouse, many web games such as "Naruto ol", "Mouse Shooting" and so on.

Demo

pk Naruto ol "keyboard and mouse memory" challenges automatic continuous tasks! !

software download

Welcome to download the software for trial~

Link: https://pan.baidu.com/s/14L92UCs_-_7sRYJG5-BxxA
Extraction code: mus4

Features

  1. High flexibility, support custom tasks;
  2. Multiple tasks can be configured in a configuration file, and the number of times and click frequency can be set for each task;
  3. Good use of keywords can reduce the IO of system operation;
  4. In terms of design, clicker can be regarded as a "programming tool" named based on pictures.

Basic articles-instructions for use

The following example takes the game "Naruto Online" as an example, and provides configuration and picture settings for some functions:

  1. Currently only supports running in windows system, no need to install any environment;

  2. After downloading the software, you must keep the clicker.exe file and the images folder in the same path; for ease of use, you can send the clicker shortcut to the computer desktop.
    Insert picture description here

  3. Run the exe file, from the configfolder, select the configuration file of the task you want to do.

    [External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-A6qPcMb1-1594466927358)(README.assets/image-20200711185257201.png)]

  4. Then, the task can be automated!

Advanced chapter-custom task

Custom task steps

1- Create task folder

Add a task screenshot folder under the images folder, and start with task_+task name to identify the task screenshot folder.

2- Add screenshots under the folder

It is recommended to start with a number, and the current agreement length is 4 digits, which represents the order of pictures in windows;

New configuration file under 3-config directory

Create a new .txtfile and rename it 任意名称.ini, add parameter configuration according to demo.

Parameter Description:

  • task {taskname}: task name
  • times: represents how many times the task is repeated
  • index: represents the starting node of the task
  • rate: This parameter affects the screen capture and click rate. The recommended setting range is 1-2s. Too fast or too slow is not good. Sample code:
#  定义羁绊任务
[jiban]
times=20
index=0
rate=2
  1. One .ini configuration file supports adding multiple tasks, but the task names cannot have the same name. If you have the same operations in sequence, please set different task names. Such as:
  [reset]
  times=1
  index=0
  rate=1.4
  
  [qiangzhe]
  times=1
  index=0
  rate=1.4
  
  # 与第一步操作相同,但不能同名
  [reset2]
  times=1
  index=0
  rate=1.4

Custom task specification

Task setting keywords
Screenshot keywords Description
start_delay After the current node is clicked, it enters the waiting state until the exit button or public button appears; it is generally used when the start button is displayed. Can be used in bondage.
delay_now You need to insert a delay_nowpicture file with a name in the task configuration , which means that the task will wait until the retreat button on the page disappears before continuing to find the next node; it is useful in duplicate tasks.
once_or_once Indicates that if the current node cannot be found, then forget it, and go directly to the next node.

Perform tuning

The system provides log files for everyone to find configuration problems to further optimize the script. The log path is: under the path where the exe file is decompressed. The log format is as follows:

2020-06-26 23:57:16,496 - basic\logger.py[line:39] - INFO: [step-8]======================1008-failed.png
2020-06-26 23:57:16,730 - basic\logger.py[line:39] - INFO: 第9次尝试点击,但是未找到按钮[1008-failed.png]休息2s后继续……
2020-06-26 23:57:18,732 - basic\logger.py[line:39] - INFO: [step-8]======================1008-failed.png
2020-06-26 23:57:18,947 - basic\logger.py[line:39] - INFO: 第10次尝试点击,但是未找到按钮[1008-failed.png]轮询模式启动……
2020-06-26 23:57:18,949 - basic\logger.py[line:39] - INFO: 系统已进入轮询模式~~
2020-06-26 23:57:18,950 - basic\logger.py[line:39] - INFO: [polling-8]======================1008-failed.png
2020-06-26 23:57:19,167 - basic\logger.py[line:39] - INFO: 本次轮询未找到匹配的按钮
2020-06-26 23:57:20,170 - basic\logger.py[line:39] - INFO: [polling-9]======================1009-return_ten.png
2020-06-26 23:57:20,389 - basic\logger.py[line:39] - INFO: 本次轮询未找到匹配的按钮
2020-06-26 23:57:21,392 - basic\logger.py[line:39] - INFO: [polling-10]======================1010_return_ten.png
2020-06-26 23:57:21,673 - basic\logger.py[line:39] - INFO: 本次轮询未找到匹配的按钮
2020-06-26 23:57:22,676 - basic\logger.py[line:39] - INFO: [polling-1]======================1001-once_menu.png
2020-06-26 23:57:22,975 - basic\logger.py[line:39] - INFO: 本次轮询未找到匹配的按钮
2020-06-26 23:57:23,977 - basic\logger.py[line:39] - INFO: [polling-2]======================1002-once_limit.png
2020-06-26 23:57:24,247 - basic\logger.py[line:39] - INFO: 本次轮询未找到匹配的按钮
2020-06-26 23:57:25,251 - basic\logger.py[line:39] - INFO: [polling-3]======================1003-once_chooseTask.png
2020-06-26 23:57:25,713 - basic\logger.py[line:39] - INFO: 系统正在操作按钮:1003-once_chooseTask.png
2020-06-26 23:57:25,715 - basic\logger.py[line:39] - INFO: 轮询模式已关闭
2020-06-26 23:57:29,725 - basic\logger.py[line:39] - INFO: 第2次任务已执行完毕
2020-06-26 23:57:29,727 - basic\logger.py[line:39] - INFO: [step-4]======================1004-once_partispate.png
2020-06-26 23:57:29,995 - basic\logger.py[line:39] - INFO: 该按钮点击一次就够了哦~即将跳过当前操作
2020-06-26 23:57:29,996 - basic\logger.py[line:39] - INFO: [step-5]======================1005-once_getIn.png
2020-06-26 23:57:30,260 - basic\logger.py[line:39] - INFO: 该按钮点击一次就够了哦~即将跳过当前操作
2020-06-26 23:57:30,262 - basic\logger.py[line:39] - INFO: [step-6]======================1006-once_confirm.png
2020-06-26 23:57:30,475 - basic\logger.py[line:39] - INFO: 该按钮点击一次就够了哦~即将跳过当前操作
Classic scene support

Fetters:

  1. In order to reduce the frequency of screenshots, start_delayafter the start of use , wait for the appearance of the withdrawal button or the prompt of the end button;
  2. With the existence of the retreat button, the table name task is in progress;

Troubleshooting

1. The system keeps printing the log: "[The task is executing, the system is waiting for the "Retreat" button to appear, scan it again after 5s]", and no longer execute it.
Insert picture description here

solemn commitment

  1. This software is not a game plug-in, it is only suitable for boring, simple and repetitive scenarios;
  2. Solemn promise: This software is non-toxic and harmless, only to help others save time.

Release Notes

June 21, 2020 18:05:25

  • Increase the modular log function;
  • Fix the infinite loop bug caused when the end node cannot be found

June 20, 2020 18:50:15

  • Update the screenshot algorithm and add support for multiple screens;
  • Increase the breakpoint polling algorithm, and use the backward traversal mode to automatically find the starting position to continue the task;

Guess you like

Origin blog.csdn.net/l714417743/article/details/107289533