Can Someone help me write this script/code

Ask gaming related questions (AHK v1.1 and older)
chax14
Posts: 2
Joined: 21 Apr 2018, 00:31

Can Someone help me write this script/code

21 Apr 2018, 01:32

hi guys?
can someone help me code a script
the idea of the script is to target a text box and continuously copy and pasting stuff even if it runs in background
like for example

Code: Select all

^#z::
Loop 100
{
	Clipboard = Lemons!
	Send ^v{Enter}
	Sleep, 15500
	Clipboard = Lemons!
	Send ^v{Enter}
	Sleep, 15500
}
loop
I want this to be looped in the discord chat even I minimized the window.

Thanks for the help.
// I'm willing to learn via examples.
// Era_Scarecrow (from kiwiirc.com) sent me this https://autohotkey.com/docs/commands/ControlSend.htm dont know how it works so I can't integrate it yet to my script.

:bravo: :bravo: :bravo: :bravo:
User avatar
eventhorizon
Posts: 158
Joined: 27 Oct 2016, 14:22

Re: Can Someone help me write this script/code

22 Apr 2018, 18:49

All scripts have a purpose -- a goal. know the goal and you know how to proceed to get to it. What is the goal of looping "Lemons!" into a discord chat box? Know too that sending text to a background window is not a straightforward process and a minimized window even worse. So what's the goal here?
A computer lets you make more mistakes faster than any invention in human history – with the possible exceptions of handguns and tequila.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 83 guests