HELP WITH AHK FOR USER bagnyemas

Hello everyone, the user @bagnyemas sent me a private message asking for help with AHK.

This is what he has at the moment and it works ok :

toggle = 0
#MaxThreadsPerHotkey 3
#ifWinActive World of Warcraft
{
$3:: ; If 3 is pressed
$^3:: ; If 3+control is pressed
$+3:: ; If 3+shift is pressed
$!3:: ; If 3+alt is pressed
Toggle := !Toggle
While Toggle{
if GetKeyState(“LCtrl”, “P”)
Send ^3
else if GetKeyState(“LShift”, “P”)
Send +3
else if GetKeyState(“LAlt”, “P”)
Send !3
else
Send 3
sleep 50
}
return
}

The issue he has, wants to change SHIFT and make it to press “1” and instead of ALT make it to press “2

@Hippo @rosdav @Tolv we need your help!

Thank you .

Cheers!

anyone? please help please

Hello,

Apologies for the delay in response.

I’m not a very good AHK person and I’m not sure how to make that work exactly.

If I understood correctly he wants to send the 1 key when he presses Shift and send the 2 key when he presses Alt?

It may work like this, but please don’t shoot me if it doesn’t, this is just a guess and I did not test it.

if GetKeyState(“LCtrl”, “P”)
Send ^3
else if GetKeyState(“LShift”, “P”)
Send +1
else if GetKeyState(“LAlt”, “P”)
Send !2

Perhaps someone else may know.

Good Luck.

1 Like

I appreciate it!!!

Our dear forum user @bagnyemas there you have it, try and see for yourself if it works.

Cheers.

toggle = 0
#MaxThreadsPerHotkey 3
#ifWinActive World of Warcraft
{
$3:: ; If 3 is pressed
$^3:: ; If 3+control is pressed
$+3:: ; If 3+Shift is pressed
$!3:: ; If 3+Alt is pressed
Toggle := !Toggle
While Toggle{
if GetKeyState(“LCtrl”, “P”)
Send ^3
else if GetKeyState(“LShift”, “P”)
Send +3
else if GetKeyState(“LAlt”, “P”)
Send !3
else
Send 3
sleep 150
}
return
}

that is my script how do i insert where should i paste it in there? @Tolv @lloskka

thanks guys appreciate it