Please help me with this code Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ZOMBYSPIDER
Posts: 27
Joined: 10 Feb 2018, 01:13

Please help me with this code

20 May 2018, 05:33

Hi, I am not the best AHK coder so it would be great if someone could put this into a code for me? Thanks! here is the information:

I want this code to repeat infinitely (start when I press L and stop when I press L again).
I also want each move movement to take a specific amount of time that would make it look like an actual person is doing it and not have it finish the script in like a second.

MM = mouse move
C = left click
W = wait / sleep
Code Info
MM) 1041,799
C) 1041, 799
MM) 1185, 689
C) 1185,689
MM) 1301, 606
C) 1301, 606
MM) 1403, 532
C) 1403, 532
MM) 1190, 383
C) 1190, 383
MM) 1040, 855
C) 1040, 855
MM) 1301, 467
C)1301, 467
MM) 1040, 855
C) 1040, 855
MM) 194, 707
C) 194, 707
MM) 1040, 855
C)1040,855
MM) 543, 668
C) 543, 668
MM) 1040, 855
C) 1040, 855
MM) 577, 637
C) 577, 637
MM) 1040, 855
C) 1040, 855
MM) 610, 607
C) 610, 607
MM) 1040, 855
C) 1040, 855
MM) 1107, 646
C) 1107, 646
MM) 1040, 855
C) 1040, 855
W) 1 hour
MM) 957, 615
C) 957, 615
W) 1 minute
Repeat until stopped

Thanks!
SirRFI
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: Please help me with this code  Topic is solved

20 May 2018, 06:24

Here's the toggle:

Code: Select all

l::SetTimer, YourLoop, % (toggle := !toggle) ? "ON" : "OFF"

YourLoop:
	; your code here...
	; as an exampe:
	ToolTip % " "
	Sleep 100
return
For the rest: MouseMove, Click, Sleep
Use

Code: Select all

[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
ZOMBYSPIDER
Posts: 27
Joined: 10 Feb 2018, 01:13

Re: Please help me with this code

20 May 2018, 06:32

where do i put the letter "L" in the toggle code?
ZOMBYSPIDER
Posts: 27
Joined: 10 Feb 2018, 01:13

Re: Please help me with this code

20 May 2018, 06:38

SirRFI wrote:Here's the toggle:

Code: Select all

l::SetTimer, YourLoop, % (toggle := !toggle) ? "ON" : "OFF"

YourLoop:
	; your code here...
	; as an exampe:
	ToolTip % " "
	Sleep 100
return
For the rest: MouseMove, Click, Sleep
Where do I put the "L" in the toggle code, also could you make the actual code please, I would really appreciate it thanks
SirRFI
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: Please help me with this code

20 May 2018, 07:11

ZOMBYSPIDER wrote:Where do I put the "L" in the toggle code
The L hotkey is already there, in the first line.
ZOMBYSPIDER wrote:also could you make the actual code please
The "hardest" part is already done - all you have to do is to use mentioned commands on your pseudo code and paste it in marked place.
Use

Code: Select all

[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Darkmaster006, gabelynn1, watashiakilla and 329 guests