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