Need help creating alternating script for a game called osu!

Get help with using AutoHotkey and its commands and hotkeys
0_Clappie
Posts: 1
Joined: 13 Sep 2019, 21:15

Need help creating alternating script for a game called osu!

13 Sep 2019, 21:25

Hello everyone, I play a game called osu!

I want to fully alternate, but I learned a method that disallows to me to do that without thinking about it. All I want to do press a different key (C & V) every time hit notes.
This will probably be child's play for the members of this forum, but I really don't want to learn how to script, along with this non-pythonic syntax, for such a mundane task.
I can provide psuedo-code for what I want to accomplish if anyone is willing to help.

Psuedo-code:

While script is active:
If last keyboard input == current keyboard input:
Disregard current keyboard input

Please send help.
Rohwedder
Posts: 2122
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help creating alternating script for a game called osu!

14 Sep 2019, 02:43

Hallo,
only this:
If last keyboard input == current keyboard input:
Disregard current keyboard input

Code: Select all

Loop
{
	Input, Key, L1 M, {AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{CapsLock}{NumLock}{PrintScreen}{Pause}
	Key .= SubStr(ErrorLevel,8)
	IF (Key == KeyOld)
		Continue
	Send, {%Key%}
	KeyOld := Key
}

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Dumitas, Google [Bot] and 151 guests