问题
I learned recently I could use batch files and JavaScript to send to keyboard presses and movements to the interface I am currently using. (See this question for one of the problems I solved using the information from this question.)
However, I am not an experienced JavaScript or any other language user yet I am proficient in writing the general basic language. While I know there are many JavaScripts, heck even other languages, that allow you to create mouse movement and clicks (see here for one possible way of doing this), I figured that there could be some way of integrating batch files with the other form of programming language types for simply creating mouse interaction, much like the one person in link 2 integrated the JavaScripts and batch files in order to create key presses.
I need to know how i can control the mouse from a batch file using a javascript if needed. (Most likely to be needed as no batch file command has jurisdiction over either mouse or keyboard directly.)
回答1:
Theres a configuration out on my windows 7 called mouse keys. This allows the mouse to be controlled by the keyboard, of which i can already easily control using the JScript to press keys. Heres the official link...
http://windows.microsoft.com/en-us/windows7/use-mouse-keys-to-move-the-mouse-pointer
来源:https://stackoverflow.com/questions/29813190/how-to-automatically-move-and-click-mouse-key-using-at-least-batch-files