Thank's for the help in advance.
I bought 4 way hat switches with push, unfortunatly the push activates with every direction. Now i am trying a workaround with AHK.
I got to the point where the single switches are working but i can't use them simultaneously.
Also i have trouble with handing over key's into a function.
my ugly first try it does work but i can't press buttons simlutaneously.
Here i tried to write a fuction to make everything easier.
Thanks for your help.
New to AHK and need help with my code
Re: New to AHK and need help with my code
I don't think you can actually use "%" in the label name itself, but you also would not need it. One example is below.
It might not work with a joystick button, but if needed, you can still do this with a timer with a static label name.
Code: Select all
3::press("1", "2", "3")
press(x, y, z)
{
Send {%x% down}
Send {%y% down}
KeyWait, %z%
Send {%y% up}
Send {%x% up}
SoundBeep, 1000
}
Who is online
Users browsing this forum: RandomBoy and 247 guests