Looking for help on how to not make my key sends redundant and how I could toggle this on and off. Topic is solved

Ask gaming related questions (AHK v1.1 and older)
NssOne
Posts: 8
Joined: 01 May 2022, 21:03

Looking for help on how to not make my key sends redundant and how I could toggle this on and off.

05 May 2024, 11:07

Code: Select all

w::Send n{enter}
d::Send e{enter}
x::Send s{enter}
a::Send w{enter}
s::Send r{enter}
z::Send sw{enter}
c::Send se{enter}
q::Send nw{enter}
e::Send ne{enter}
s::Send r{enter}
Space::Send a{enter}
f::Send cure{enter}
I have some keys that I'm sending keystrokes to, but they are activating other keys as well. so if i press [a] I send [w] which sends [n]. I understand this is how it should work, but I'm trying to get around that. I obviously just want [a] to send [w]. Is it a matter of properly remapping or is there a function I haven't found that will help with this?

I would also like to be able to toggle this keystroke section on and off with something as simple as [ctrl]+[k].

I'd be grateful for any help here.
Rohwedder
Posts: 7706
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Looking for help on how to not make my key sends redundant and how I could toggle this on and off.  Topic is solved

05 May 2024, 12:39

Hallo,
try:

Code: Select all

^k::wdxa:=!wdxa
#IF wdxa
$w::Send n{enter}
$d::Send e{enter}
$x::Send s{enter}
$a::Send w{enter}
$s::Send r{enter}
$z::Send sw{enter}
$c::Send se{enter}
$q::Send nw{enter}
$e::Send ne{enter}
$Space::Send a{enter}
$f::Send cure{enter}
#IF
User avatar
mikeyww
Posts: 27165
Joined: 09 Sep 2014, 18:38

Re: Looking for help on how to not make my key sends redundant and how I could toggle this on and off.

05 May 2024, 12:40

More....

Code: Select all

#Requires AutoHotkey v1.1.33.11
map := { a    : "w"
       , c    : "se"
       , d    : "e"
       , e    : "ne"
       , f    : "cure"
       , q    : "nw"
       , s    : "r"
       , Space: "a"
       , w    : "n"
       , x    : "s"
       , z    : "sw"   }

^k::
on := !on
SoundBeep 1000 + 500 * on
Return

#UseHook
#If on
a::
c::
d::
e::
f::
q::
s::
Space::
w::
x::
z::
Send % map[A_ThisHotkey] "`n"
Return
#If
#UseHook Off
NssOne
Posts: 8
Joined: 01 May 2022, 21:03

Re: Looking for help on how to not make my key sends redundant and how I could toggle this on and off.

05 May 2024, 13:10

Rohwedder wrote:
05 May 2024, 12:39
Hallo,
try:

Code: Select all

^k::wdxa:=!wdxa
#IF wdxa
$w::Send n{enter}
$d::Send e{enter}
$x::Send s{enter}
$a::Send w{enter}
$s::Send r{enter}
$z::Send sw{enter}
$c::Send se{enter}
$q::Send nw{enter}
$e::Send ne{enter}
$Space::Send a{enter}
$f::Send cure{enter}
#IF
Yep, this works for me. Thank you.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 24 guests