Jump to content

Simple move and click script

paps511
Go to solution Solved by CrazyMatt,

If you want to do just a teensy bit of programming, you can use AutoIt.

#include <AutoItConstants.au3>
Local $running = true

Do
 MouseClick($MOUSE_CLICK_LEFT, 25, 25)
 Sleep(3000)
 MouseClick($MOUSE_CLICK_LEFT, 50, 50)
 Sleep(1000)
Until $running = false

 

Hey all,

 

I want to make a script that will perform basically this action:

 

Click at (25,25) [x,y]

Wait 3000 ms

Click at (50,50)

Wait 1000 ms

Repeat

 

What would the best way to write this up?

I don't even know what to use to write it, but I will probably have to save it as a .exe

 

Thoughts?

CPU: Intel Core i7 8700k CPU Cooler: Corsair Hydro Series H100i Mobo:  Memory: G.Skill Ripjaws X 32GB 2133 Storage #1: 1TB 850 EVO SSD Storage #2: Western Digital Black 2TB Storage #3: Western Digital Green 4TB GPU: Gigabyte 980 Ti G1 Case: Mastercase5 PSU: EVGA 750 W G2 80+Gold Keyboard: Corsair K70 RGB Cherry MX Brown Mouse: Razer Deathadder Elite Monitor: LG 34UM94 Headset: Bose

Phone: Samsung Galaxy S9

Link to comment
Share on other sites

Link to post
Share on other sites

use windows task scheduler?

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Enderman said:

use windows task scheduler?

I've never heard of that, and the documentation on the MSDN website is pretty terribly...

 

Have you used it before?

CPU: Intel Core i7 8700k CPU Cooler: Corsair Hydro Series H100i Mobo:  Memory: G.Skill Ripjaws X 32GB 2133 Storage #1: 1TB 850 EVO SSD Storage #2: Western Digital Black 2TB Storage #3: Western Digital Green 4TB GPU: Gigabyte 980 Ti G1 Case: Mastercase5 PSU: EVGA 750 W G2 80+Gold Keyboard: Corsair K70 RGB Cherry MX Brown Mouse: Razer Deathadder Elite Monitor: LG 34UM94 Headset: Bose

Phone: Samsung Galaxy S9

Link to comment
Share on other sites

Link to post
Share on other sites

If you want to do just a teensy bit of programming, you can use AutoIt.

#include <AutoItConstants.au3>
Local $running = true

Do
 MouseClick($MOUSE_CLICK_LEFT, 25, 25)
 Sleep(3000)
 MouseClick($MOUSE_CLICK_LEFT, 50, 50)
 Sleep(1000)
Until $running = false

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, CrazyMatt said:

If you want to do just a teensy bit of programming, you can use AutoIt.


#include <AutoItConstants.au3>
Local $running = true

Do
 MouseClick($MOUSE_CLICK_LEFT, 25, 25)
 Sleep(3000)
 MouseClick($MOUSE_CLICK_LEFT, 50, 50)
 Sleep(1000)
Until $running = false

 

I literally just downloaded Autoit and was about to start playing with it

CPU: Intel Core i7 8700k CPU Cooler: Corsair Hydro Series H100i Mobo:  Memory: G.Skill Ripjaws X 32GB 2133 Storage #1: 1TB 850 EVO SSD Storage #2: Western Digital Black 2TB Storage #3: Western Digital Green 4TB GPU: Gigabyte 980 Ti G1 Case: Mastercase5 PSU: EVGA 750 W G2 80+Gold Keyboard: Corsair K70 RGB Cherry MX Brown Mouse: Razer Deathadder Elite Monitor: LG 34UM94 Headset: Bose

Phone: Samsung Galaxy S9

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×