I have an exe file which can detect F6 key whenever i press in browser. But i want to do this task programatically in javascript. I have tried different methods from stackoverflow but none of them is detectable by exe file. But when i press F6 key manually then exe file detects.
These are the methods i have tried but none of them worked for me:
Javascript - trigger specific keyboard keys
Is it possible to simulate key press events programmatically?
etc.
After this automatic trigger, exe file return F7 key and i have to detect it in browser using javascript.