Code: Select all
#InstallKeybdHook
#UseHook
gui, add, edit, x20 y30 w400 h20 vSlot1
gui, add, edit, x20 y70 w400 h20 vSlot2
gui, add, Button, x500 y30 w50 h20, OK
Gui, Show, w600 h500, TEST
return
ButtonOK:
gui, submit, NoHide
return
GuiClose:
ExitApp
$numpad1::
send %Slot1%
$numpad2::
send %Slot2%
But when I run the script, the first hotkey prints Slot 1 and Slot 2 at the same time, when it should only print Slot 1.
For example, if the input of Slot 1 is HELLO, and Slot 2 is HI, numpad1 prints out HELLOHI. But numpad2 works fine, only printing out Slot 2.
I'm new to AHK, and I have no idea whats going on. Please help