Skip to content

DAIRemote is a versatile display, audio, and input remote for Windows desktops. It will enable users to save and load display profiles, cycle through audio playback devices, and even use their Android phone as keyboard and mouse input—all from the comfort of wherever you're sitting.

Notifications You must be signed in to change notification settings

lynnhakim/DAIRemote

 
 

Repository files navigation

DAIRemote

Description

DAIRemote is a versatile display, audio, and input remote for Windows desktops. It allows users to:

  • Save and load display profiles
  • Cycle through audio playback devices
  • Use an Android phone as a keyboard and mouse input

All of these features can be controlled remotely, providing convenience from wherever you're sitting.

Dependencies

  • .NET SDK: Version 8.0 or higher (you can download it from here).
  • Visual Studio or VSCode (optional for development).
  • Android Studio

Installing

Clone The Repository

git clone https://github.com/your-username/DAIRemote.git
cd DAIRemote

Restore Dependencies

Run the following command to restore any NuGet packages:

dotnet restore

Build the Project

Compile the project to ensure everything is set up correctly:

dotnet build

Executing program

Navigate to the Project Directory

Ensure you're in the directory where the .csproj file is located:

cd DAIRemote

Run the Application

Start the application using the following command:

dotnet run

Running the Android Application

Option 1 (Using BlueStacks):

  • Download BlueStacks
  • Navigate to the folder where the APK file is stored (e.g. DAIRemoteApp/app/build/outputs/apk/debug)
  • Right-click on the APK file and select "Open with BlueStacks and the Android app should run.

Option 2 (Command Line):

  1. Ensure Android SDK is in PATH:
    • Check if the SDK is located at:
      C:\Users\<yourUser>\AppData\Local\Android\Sdk
      
    • Replace <yourUser> with your user.
    • If necessary, add this path to your system environment variables.
  2. Add Emulator Path:
    • Add the following path to your system PATH variable:
      C:\Users\<yourUser>\AppData\Local\Android\Sdk\emulator
      
  3. Navigate to the Project Directory:
    cd DAIRemoteApp
  4. Build the APK using Gradle:
    • Android Studio projects use Gradle to build the APK. Use the following command to build your project:
    gradlew assembleDebug
  5. List All Available AVDs:
    emulator -list-avds
    • If no AVDs are available, you will need to create one. You can find a tutorial on creating an AVD here.
  6. Run the Emulator
    emulator -avd <yourAVD>
    • Replace <yourAVD> with the name of the AVD you wish to run.

Debugging

If you encounter an error after running gradlew assembleDebug related to having an older version of Java, follow these steps:

  1. Install Java 17 from here.
  2. After installation, open your environment variables settings:
    • Go to the System Properties.
    • Click on Environment Variables.
  3. Check if the JAVA_HOME variable is present. If not, add it:
    • Create a new system variable with the following:
      • Variable name: JAVA_HOME
      • Variable value: Path to your JDK 17 installation (e.g., C:\Program Files\Java\jdk-17).
  4. Edit the PATH variable:
    • Replace the existing path that points to the older JDK (e.g., C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin) with %JAVA_HOME%\bin.

After completing these steps, try running gradlew assembleDebug again.

Authors

About

DAIRemote is a versatile display, audio, and input remote for Windows desktops. It will enable users to save and load display profiles, cycle through audio playback devices, and even use their Android phone as keyboard and mouse input—all from the comfort of wherever you're sitting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 73.8%
  • Java 26.2%