Skip to content

dpo007/AHK-RDP-Window-Resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ‰ RDP Window Resizer - The Ultimate Window Management Script! πŸŽ‰

Welcome to the RDP Window Resizer! This AutoHotkey (AHK) script is the best thing to happen to your Remote Desktop windows since the invention of sliced bread! Say goodbye to the hassle of manually resizing and repositioning your windows and hello to automated, pixel-perfect window management. 🀩

πŸš€ Features

  • Automatic Centering: If you have just one RDP window, it gets perfectly centered on your current monitor with your desired dimensions.
  • Multiple Window Management: Got more than one? No problem! The script arranges them beautifully starting from your specified coordinates with a neat offset for each one.
  • Comprehensive RDP Client Support: Works with Windows' in-built Remote Desktop Connection client, the legacy Remote Desktop UWP/Store app, and the new Windows App RDP client.
  • Smart Window Detection: Matches windows by title suffix OR by process name for reliable detection across all RDP client versions.
  • Effortless Customization: Simply tweak the variables to match your needs, and you're good to go!

πŸ”§ How It Works

  1. Window Detection: The script identifies RDP windows by checking if:
    • The window title ends with "Remote Desktop" (matches the Remote Desktop UWP/Store app), OR
    • The window title ends with "Remote Desktop Connection" (matches the in-built Windows Remote Desktop Connection client), OR
    • The window process is msrdc.exe (matches the new Windows App RDP client)
  2. Single Window Mode: When there's only one matching window, it will be centered on your monitor with the width and height you set.
  3. Multi-Window Mode: When there are multiple matching windows, they will be arranged starting from start_x, start_y coordinates with an offset for each subsequent window.

πŸ“‹ Variables

  • target1: Title suffix for Remote Desktop UWP/Store app. (default "Remote Desktop")
  • target2: Title suffix for in-built Remote Desktop Connection client. (default "Remote Desktop Connection")
  • target_exe: Process name for Windows App RDP client. (default "msrdc.exe")
  • window_width: The desired width for the windows. (default 1920)
  • window_height: The desired height for the windows. (default 1200)
  • start_x: The initial x-coordinate for positioning the windows. (default 195)
  • start_y: The initial y-coordinate for positioning the windows. (default 70)
  • offset_x: The x-coordinate offset for each subsequent window. (default 50)
  • offset_y: The y-coordinate offset for each subsequent window. (default 50)

About

Say goodbye to the hassle of manually resizing and repositioning your windows and hello to automated, pixel-perfect window management.

Topics

Resources

Stars

Watchers

Forks

Contributors