*TYPING AND COPY PASTE!!!
Control your Android tablet from your PC with just Alt+Tab!
A simple, one-click solution to use your PC's keyboard and mouse to control your Android tablet. No complicated setup, no virtual machines - just plug in and go.
- 🖱️ Mouse Control - Use your PC mouse to navigate Android
- 📋 Copy/Paste - Seamlessly share clipboard between PC and tablet
- ⌨️ Alt+Tab Integration - Switch between PC and tablet like switching windows
- 🚀 One-Click Launch - Double-click and you're ready to go
- 🔄 Auto-Cleanup - Closes cleanly when you exit the script
Have you ever wanted to quickly type something on your tablet using your full keyboard? Or control your tablet without constantly reaching for it? This script makes it seamless - your tablet becomes just another window on your PC.
Perfect for:
- Testing Android apps while developing on PC
- Using tablet apps with a proper keyboard
- Quick file transfers via copy/paste
- Drawing/note-taking apps with precise mouse control
Before you start, you'll need:
- Windows PC (Windows 10/11)
- AutoHotkey v2.0+ - Download here
- scrcpy - Download here
- Android tablet with USB debugging enabled (Android 9+)
- USB cable to connect tablet to PC
Install AutoHotkey v2:
- Download from https://www.autohotkey.com/
- Run the installer
- Make sure you get version 2.0 or higher (not v1.1)
Install scrcpy:
- Download the latest release from https://github.com/Genymobile/scrcpy/releases
- Extract the ZIP file to
C:\scrcpy\(or anywhere you prefer) - You should have
C:\scrcpy\scrcpy.exeas the final path
- Go to Settings → About tablet
- Tap Build number 7 times (you'll see "You are now a developer!")
- Go back to Settings → Developer options
- Enable USB debugging
- Connect your tablet to PC via USB
- Accept the "Allow USB debugging" popup on your tablet
- Download
TabletControl.ahkfrom this repository - Right-click the file → "Edit Script"
- Change line 4 if your scrcpy is in a different location:
scrcpyPath := "C:\scrcpy\scrcpy.exe" - Save the file
- Double-click
TabletControl.ahk - A small scrcpy window will appear showing your tablet screen
- Alt+Tab to the scrcpy window - now your mouse/keyboard control the tablet!
- Alt+Tab back - you're controlling your PC again
That's it! 🎉
- Switch to tablet: Alt+Tab to the scrcpy window
- Switch to PC: Alt+Tab away from scrcpy window
- Copy/Paste: Copy on PC (Ctrl+C), switch to tablet, paste in any Android app (Ctrl+V)
- Stop the script: Right-click the AutoHotkey icon in system tray → Exit
Edit the script's cmd line (around line 18) to customize scrcpy behavior:
cmd := scrcpyPath . " --no-playback --keyboard=sdk --mouse=uhid"Useful options:
--max-size=1920- Limit screen resolution--bit-rate=8M- Adjust video quality--stay-awake- Keep screen on while connected
See scrcpy documentation for all options.
- Press
Win+Rand typeshell:startup - Create a shortcut to
TabletControl.ahkin that folder - Script will auto-launch when Windows starts
"scrcpy not found" error:
- Check that scrcpy.exe is at the path specified in the script (line 4)
- Make sure you extracted scrcpy completely, not just the exe
Tablet not detected:
- Make sure USB debugging is enabled
- Try a different USB cable or port
- Run
adb devicesin Command Prompt to verify connection
Keyboard typing doesn't work:
- This is a known limitation with scrcpy's SDK mode
- Copy/paste will still work perfectly
- For full keyboard support, you'd need to use
--keyboard=uhidbut it may be choppy
Mouse is laggy:
- Try a USB 3.0 port instead of 2.0
- Reduce scrcpy quality with
--max-size=1280 --bit-rate=4M - Disable power saving for USB in tablet's Developer Options
Script won't start:
- Make sure you have AutoHotkey v2.0+ (not v1.1)
- Right-click the script → "Run Script"
MIT License - feel free to modify and share!
Found a bug? Have a feature idea? Open an issue or submit a pull request!
- Built with AutoHotkey v2
- Powered by scrcpy by Genymobile
- Created because I couldn't find anything else that did this simply!
Like this project? Give it a ⭐ to help others find it!