Forum Discussion

vthomeschoolmom's avatar
vthomeschoolmom
Super Contributor
14 years ago

number pad

My application under test has a feature that is enabled when the keys on the number pad with NUM LOCK enabled are typed. I need test complete to simulate the pressing of the numbers on the number pad specifically, not any old number key. Is this possible?



Thanks


2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    If you're using the Keys method on your component, you can call the VK constant for the specific key.



    For example, the following will press the NumPad0 key



    MyForm.MyTextBox.Keys(Win32API.VK_NUMPAD0)