Could some one write me a simple script?

Ask gaming related questions (AHK v1.1 and older)
laughingoblin
Posts: 3
Joined: 30 Nov 2021, 18:09

Could some one write me a simple script?

Post by laughingoblin » 30 Nov 2021, 18:22

I can't get my head around the scripts and how to write them. All i need is a simple script (if it'll be simple) that presses Space and C at the same time when I press B.
I appreciate any help i'll get a lot, thank you!

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

Re: Could some one write me a simple script?

Post by mikeyww » 30 Nov 2021, 21:53

Code: Select all

b::Send {Space down}c{Space up}

laughingoblin
Posts: 3
Joined: 30 Nov 2021, 18:09

Re: Could some one write me a simple script?

Post by laughingoblin » 01 Dec 2021, 06:50

Hi! thanks for it i trully do appreciate it. But i got a quick question so it doesn't quite work when I'm holding down shift, will it work like this? leftshift b::Send {Space down}c{Space up}
works well enough without it but realised it would be a lot faster for me

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

Re: Could some one write me a simple script?

Post by mikeyww » 01 Dec 2021, 07:03

Yes. + is used to designate Shift as a modifier key. If needed, you can use <+ for LShift.

Code: Select all

b::
+b::Send {Space down}c{Space up}          ; Unshifted output
; +b::Send {Blind}{Space down}c{Space up} ; Shifted output
Explained: Hotkey modifier symbols
The characters ^+!# represent the modifier keys Ctrl, Shift, Alt and Win. They affect only the very next key.

laughingoblin
Posts: 3
Joined: 30 Nov 2021, 18:09

Re: Could some one write me a simple script?

Post by laughingoblin » 01 Dec 2021, 07:49

I'm slowly beginning to understand how writing scripts and codes work, thanks a bounch!

Post Reply

Return to “Gaming Help (v1)”