简体   繁体   中英

Android running command on windows

is there any android library or application to send command or keystroke or mouse click to Windows from android app?

I have an android project that need to run an application on windows with a touch on android.. the android app will have 4 big button which is used to send command to windows..

I expect there is an android library and server app for windows.

Have a look at this answer: https://stackoverflow.com/a/10140812/1291122 .There are no android libraries for that. You need to write it all yourself!.

However I feel(haven't tried yet) that you can use the bluetooth API to establish a connection between your android device and your windows pc and exchange data(command strings like "LEFT","OPEN","SHUTDOWN") by managing the connections .At the same time, you may have simple ServerSocket running on windows which accepts connection from your android device and decodes the command strings received and performs actions accordingly.

There are many applications available in the market which do the same thing. I guess they use a similar(not exact) approach.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM