tried that, didn't work. here's my code:

t = FindWindow(vbNullString, "calculator")
SendMessage t, WM_KEYDOWN, VK_NUMPAD3, 1
SendMessage t, WM_KEYUP, VK_NUMPAD3, 0


i have declared everything properly, there is a calculator window open for testing purposes. no key is sent. any ideas?