Skip to content

Android application which controls the mouse on Windows

License

Notifications You must be signed in to change notification settings

bourdibay/WindowsRemote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WindowsRemote

========================================

Android application which controls the mouse on Windows.

This is a merge of my very first two Android experiments on a real application ! Those are Android_WindowsRemote_UDP and Android_WindowsRemote_Bluetooth.

The goal of it is to control the mouse of a computer on Windows with the Android smartphone. The connection between Windows and Android can be either over Wifi or Bluetooth.

How to build

The Windows server

I use the json minimalistic library Jsmn. You just need to run CMake with no additional options. The server has been coded in C. It compiles with Visual Studio 2015 and has been tested on Windows 10.

The cursor cannot be moved within windows that have been started with higher privileges. Thus it is adivsed to run it as administrator.

I used the code sample provided by Microsoft there to get started with Bluetooth technology. The server should NOT work if you have a Broadcom Bluetooth device, since you have to use their own SDK.

The Android client

I use Android Studio 2 to build it. Tested on Lollipop and Marshmallow Android.

Run

Windows (server):

With Bluetooth connection:

  • ServerMouseController.exe --socket bluetooth

With UDP connection:

  • ServerMouseController.exe --socket udp

With TCP connection:

  • ServerMouseController.exe --socket tcp
Notes:
  • Wifi: When using UDP protocol, some packets may be dropped. When using TCP protocol, cursor moving may not be optimal.

  • Bluetooth: To make it work correctly on Windows, do not forget to turn on Bluetooth, and I also had to allow Bluetooth devices to detect my PC (in Bluetooth's advanced parameters).

Android (client):

Start the app and configure it via the settings to enable Bluetooth or Wifi connection.

Notes:
  • Wifi: Enable Wifi first :) otherwise you'll get errors.

  • Bluetooth: Enable Bluetooth and pair to the Windows device. Then in the app's settings you'll be able to select which paired device to communicate with.

Screenshots

screen1 screen2 screen3 screen4 screen5

About

Android application which controls the mouse on Windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published