Refresh the script by the Dragon Wolf guardian

Source: Internet
Author: User

This code is a shortcut wizard script.

After a bug was fixed, the guardian of X-Dragon of the Three Kingdoms refreshed and the official team came up with a new strategy: each time you need to press the left mouse button and click "Start battle" to enter the guardian of X-dragon, however, you cannot click the button at the same position twice in a row; otherwise, the button cannot enter. The number of "X-Dragon Guardian" attacks is more than 50 in a day, which requires us to have a new script to deal with this situation.

The idea of the script is as follows: Based on the initial point of the mouse, a certain horizontal and vertical coordinates are randomly shifted around the point every three seconds, and the left mouse button is simulated to click.

The Code is as follows: (in the debugging stage, press F10 to start running and press F12 to stop running)

'Set pseudo-random number randomize' to get the current mouse position dim X, ygetcursorpos X, Y for 100' move the mouse to the specified position, X coordinate ± 45, Y coordinate ± 15 moveTo _ x + int (90 * RND) + 1)-45, _ y + int (30 * RND) + 1) -15 leftclick 1' left-click delay 3000 'latency 3 seconds nextmsgbox "script running completed", 4096, "prompt"

Note that, when converting the source code to Chinese characters, the press-key Genie cannot recognize the statement line symbol in the basic language _, therefore, when you browse a script for Chinese characters, the "statement cannot be identified" issue does not affect the syntax check and compilation of the source code and program debugging.

End

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.