just call num_off from your code after the endkeys

using keybd_event is more reliable than sendkeys anyway