I have one button on my html page with window title "Page":
<button onclick="alert('This button has been clicked')">Submit</button>
and using AutoHotKey, I'm trying to set focus on him and then send a mouse click.
This is the AHK code i write:
^p::
ControlFocus, Submit, Page
MouseClick left
return
On pressing Ctrl+P keys, it should do his job. Unfortunately, it doesn't work. I've read the documentation with some examples and I can't get it to work...