Keystroke, mousemove, click , repeat [help needed]

Post gaming related scripts
Ninjagaiden86
Posts: 1
Joined: 03 May 2018, 21:01

Keystroke, mousemove, click , repeat [help needed]

03 May 2018, 21:05

Hey

I know this should be fairly simple macro/script to create, I'm just quite new to AHK so that's why asking.

So if anyone could post a script that keystrokes lets say Q and then moves mouse to X/y position and then clicks mouse, then sleep > Q and moves cursor to X/Y position and mouse click so on.

If you just give me really basic idea I think I can figure the rest out. If you wonder what for, its ArcheAge and I'm tired of single planting huge farms.

Thx in advance!
Qysh
Posts: 77
Joined: 24 Apr 2018, 09:16

Re: Keystroke, mousemove, click , repeat [help needed]

11 May 2018, 09:49

I hope this helps ;)

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Rangerbot
Posts: 34
Joined: 02 Mar 2018, 10:33

Re: Keystroke, mousemove, click , repeat [help needed]

13 May 2018, 03:45

Code: [Select all] [Download] GeSHi © Codebox Plus

Send {q down}
sleep 25
click x, y ;clicks while q is pressed
Send {q up} ;then releases

Code: [Select all] [Download] GeSHi © Codebox Plus

Send q
sleep 25
click x, y ;clicks after q is pressed and released


repeat:

Code: [Select all] [Download] GeSHi © Codebox Plus

Loop [n] {
Send q
sleep 25
click x, y ;clicks after q is pressed and released
}
'n' is optional and is the number of times the loop will run


alternatively:

Code: [Select all] [Download] GeSHi © Codebox Plus

send {q [n]}  ; press 'q' n times
click x, y, n ; clicks n times at x, y
Rangerbot
Posts: 34
Joined: 02 Mar 2018, 10:33

Re: Keystroke, mousemove, click , repeat [help needed]

13 May 2018, 03:52

if you choose to use variables
Send, %press_key%
Sleep, %delay_between_actions%
Click, %move_x%, %move_y%
Sleep, %wait_long%

???????
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#MaxThreadsPerHotkey 255

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 4 guests