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”
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
@bagnyemas hey, not sure if you are still needing any help with this but if you are this is the complete script.
If you need to update it in the future to change what key it presses its the “Send” sections that need to be changed to replace the number with whatever else you want it to press.
; + = Shift
; ^ = Ctrl
; ! = Alt
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 +1
else if GetKeyState(“LAlt”, “P”)
Send !2
else
Send 3
sleep 50
}
return
}