samick17 / windows-automator-lib

This is the wrapper of windows-OS mouse/keyboard API implemented in C++.Wrapped in NodeJs
MIT License
3 stars 1 forks source link

How to press ENTER key #3

Closed duvemula closed 6 years ago

duvemula commented 6 years ago

Hi @samick17,

I am unable to find ENTER key option from VK. Could you please share me how to press the ENTER key with windows-automator-lib.

Regards, Durga Prasad

samick17 commented 6 years ago

Hi @duvemula ,

You can use following code to execute ENTER, "combinationKeyByVKValue" can send composition key event at the same time

I name the "ENTER" key to "RETURN"

require('windows-automator-lib').Core.combinationKeyByVKValue([VK.RETURN])

references: https://pc.net/helpcenter/answers/keyboard_return_key

Regards, Samick

duvemula commented 6 years ago

Thank you so much @samick17 for help