And I want to bind every key in my keyboard (except one for emergency purposes) to spam the same message to the game's chat.
But this means I'll have to create a function for each and every key with only one minor difference: If I'm not in the game, it won't trigger, and instead the default function of said key will happen, whether it be a normal character, or a Delete key, or the Windows Key.
Is there a way for this to be possible?
Here's my code:
Code: Select all
Coffee() {
if gameStat {
Send, {Enter}
Sleep, 50
Send, {raw}SHAMALAMA DING DONG
Sleep, 50
Send, {Enter}
Return
} else {
//I have no idea what to insert here
Return
}