I want the commands :T:R2, R3, R4... :T:R300 Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Clemens375
Posts: 94
Joined: 11 May 2020, 11:54

I want the commands :T:R2, R3, R4... :T:R300

11 Jul 2020, 01:16

Hello,

I want the commands :T:R2, R3, R4... :T:R300 like down below. Is there a way to create this 300 commands faster?

Code: Select all

:T:R2::
loop, 2 {
Mousemove,  122,  93
sleep, 60
Click, down,   122,  93
sleep, 60
Click,    122,  93
}
return

:T:R300::
loop, 100 {
Mousemove,  122,  93
sleep, 60
Click, down,   122,  93
sleep, 60
Click,    122,  93
}
return
Thank you!
BoBo
Posts: 3326
Joined: 13 May 2014, 17:15

Re: I want the commands :T:R2, R3, R4... :T:R300  Topic is solved

11 Jul 2020, 01:58

Code: Select all

X := 122
y := 93
:X:R20::func(SubStr(A_THisHotkey,5,3), x, y)
:X:R100::func(SubStr(A_THisHotkey,5,3), x, y)


func(i, x, y) {
	Loop % i {
	; Mousemove, x, y
	Sleep, 60
	; Click, down, x, y
	Sleep, 60
	; Click, x, y
	ToolTip % A_Index
	}
ToolTip
}

F12::
	Loop 300
		ClipBoard .= ":X:R" . A_Index . "::func(SubStr(A_THisHotkey,5,3), x, y)`n"
	MsgBox % "Hotstrings :X:R1-R300 copied to ClipBoard"
	Return

Return to “Ask For Help”

Who is online

Users browsing this forum: badda, boiler, colmik, Epialis, Google [Bot], kczx3, labrint, sobuj53 and 60 guests