Writing a String - Beginner Topic is solved

Ask gaming related questions (AHK v1.1 and older)
autofriend
Posts: 12
Joined: 17 Oct 2021, 20:57

Re: Writing a String - Beginner

Post by autofriend » 17 Oct 2021, 23:30

Yea, for sure!

Thanks again for all of your help. And that's definitely good advice. Here is the current script that I am using and I think it's working great for me!

Code: Select all

#MaxThreadsPerHotkey 2
Global on
wait = 2895
!r::
SetKeyDelay, 100, 25
on := !on, keys("0m", wait)
While on
keys("8o0m", wait), keys("8o0m", wait), keys("8o0m", wait), keys("8o0m", wait), keys("8o0m", wait), keys("8k0m", wait), keys("8k0m", wait), keys("8k0m", wait), keys("8k0m", wait), keys("8k0m", wait), keys("8o0m", wait), keys("8o0m", wait), keys("8o0m", wait), keys("8o0m", wait), keys("8j0m", wait), keys("8j0m", wait), keys("8j0m", wait), keys("8j0m", wait), keys("8j0m", wait), keys("8i0m", wait)
Return

keys(str, wait) {
Send % on ? str : ""
Sleep, wait * on
}
[Mod edit: [code][/code] tags added.]

P.S., how would it be possible for me to run this just on my google browser. It would be extremely helpful for me if I were able to keep this running simultaneously with my virtual desktop that I use for work.

User avatar
mikeyww
Posts: 26889
Joined: 09 Sep 2014, 18:38

Re: Writing a String - Beginner

Post by mikeyww » 18 Oct 2021, 05:29

Code: Select all

#MaxThreadsPerHotkey 2
Global on
wait = 2895

#IfWinActive ahk_exe chrome.exe
!r::
SetKeyDelay, 100, 25
on := !on, keys("0m", wait)
While on
   keys("8o0m", wait, 5), keys("8k0m", wait, 5), keys("8o0m", wait, 4)
 , keys("8j0m", wait, 5), keys("8i0m", wait)
Return
#IfWinActive

keys(str, wait, times := 1) {
 Loop, %times% {
  Send % on ? str : ""
  Sleep, wait * on
 } Until !on
}

Post Reply

Return to “Gaming Help (v1)”