I am trying to automate the recording of speech in Google speech input (works only in Chrome).
Be that as it may, the user must click the microphone to start recording, but I am working on an installation where the user will not interact with the computer. So I have to initiate the recording in a different way.
As you see it, you cannot access the speech input functions by code, i.e. You cannot call a function to start recording. So now I am looking at imitating a mouse click on a microphone.
I tried using javaScript, but it seems that only events and event handlers affect it (for example, a simulated click on the input field will trigger its click handlers, but will not give focus to the field.)
So, now I look at modeling clicks of Windows system mice, and I found several programs that can do this (mostly at intervals), and it works, recording starts. But the problem is that I need to activate click simulation from a browser application.
For the better, AutoHotkey has become so far, which allows you to create custom scripts, in my case a script that simulates a mouse click on a given position. So, if I could run this script from a browser, I would be safe, but I don't know how to do it.
Any ideas and / or thoughts are welcome!
source share