Trying something out, need a bit of help.

So i want to be able to hit the “1” key and my AHK script run through my number pad keys. Using this for a different macro outside of GSE. I have tried a few things but i can’t get it to fire off right…

1::
send, % “{numpad” count ++ “}”
if (count = 9)
count := 0
return

This is what i have so far but it’s not working…

Replace 1 and numpad with Numpad1. So it should look like this:

Numpad1::
send, % “{Numpad1” count ++ “}”
if (count = 9)
count := 0
return

Though I would probably try this first:

Numpad1::
While GetKeyState(“Numpad1”, “P”){
Click
Sleep 50 ; milliseconds
}
return

Also this site may help you out a bit:

AHK Keylist

[quote quote=70669]Replace 1 and numpad with Numpad1.
Also this site may help you out a bit:
AHK Keylist[/quote]

So all i’m getting after that is it’s firing off only the Numpad1 i want it to cycle through 0-9 with only hitting my “1” key lol.
Sorry i’m still learning a lot with this…

lol all good I am probs just as new as you are :slight_smile:

Have a look at this code and see if it helps you:

Cycle through keys

$Numpad1::
Loop
{
if not GetKeyState(“Numpad1”, “P”)
break
Send {Numpad1}
Sleep 80
}
return

$Numpad2::
Loop
{
if not GetKeyState(“Numpad2”, “P”)
break
Send {Numpad2}
Sleep 80
}
return

$Numpad3::
Loop
{
if not GetKeyState(“Numpad3”, “P”)
break
Send {Numpad3}
Sleep 80
}
return

$Numpad4::
Loop
{
if not GetKeyState(“Numpad1”, “P”)
break
Send {Numpad4}
Sleep 80
}
return

$Numpad5::
Loop
{
if not GetKeyState(“Numpad2”, “P”)
break
Send {Numpad5}
Sleep 80
}
return

$Numpad6::
Loop
{
if not GetKeyState(“Numpad6”, “P”)
break
Send {Numpad3}
Sleep 80
}
return

Ok How can i make the number “1” fire this off? Make 1 the hotkey to cycle it?

Figured it out =-)