Giter Site home page Giter Site logo

windowhotkeys's Introduction

Welcome to the Justcla repos!

Justin is a Product Manager and Software Engineer with over twenty years' experience in software development and has worked for several large organisations including Google, Microsoft, Amazon, NewsCorp, Symantec, Booking.com, and more!

  • Senior Technology Product Manager @Booking.com.
  • Formerly Product Manager for Android Studio @Google.
  • Formerly Program Manager on the Visual Studio IDE team at @Microsoft
  • Formerly Senior Software Engineer for AzureDevOps @Microsoft

windowhotkeys's People

Contributors

justcla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mckellygit

windowhotkeys's Issues

Tile and Cascade don't work on Windows 11

Unfortunately, looks like Tile/Cascade was removed from Windows 11. The WindowsHotKeys calls to the Win32 API succeed and sometimes tile or cascade a couple windows on the screen, but not all and the Win32 API seems quite broken. Adding an issue here in case an alternative workaround can be found. I had my hopes up that this library would fix the Windows 11 woes of removal of tile/cascade options on the taskbar, but alas there is a bigger underlying problem than just a UI change to the taskbar.

    ; Tile and Cascade windows
    ReadAndStoreHotKeyAction(ShortcutsFile, "TileWindowsVertically", "TileWindowsVertically", "!#V")
    ReadAndStoreHotKeyAction(ShortcutsFile, "TileWindowsVertically2", "TileWindowsVertically", "!+#V")
    ReadAndStoreHotKeyAction(ShortcutsFile, "TileWindowsHorizontally", "TileWindowsHorizontally", "!#H")
    ReadAndStoreHotKeyAction(ShortcutsFile, "TileWindowsHorizontally2", "TileWindowsHorizontally", "!+#H")
    ReadAndStoreHotKeyAction(ShortcutsFile, "CascadeWindows", "CascadeWindows", "!#C")
    ReadAndStoreHotKeyAction(ShortcutsFile, "CascadeWindows2", "CascadeWindows", "!+#C")

Move window to previous desktop not working in Windows 11

I had to comment out the CurrentDesktop = 1 check in MoveToPrevious as CurrentDesktop seems to always be returning 1. Not sure if this was working in Windows 10 (the Windows 11 upgrade prompted me to install WindowHotKeys since Windows 11 has removed the ability to tile/cascade windows from the taskbar; I was thinking just thinking it would be awesome to be able to move windows between desktops - awesome WindowsHotKeys supports it!). With the fix moving windows between desktops seems to work great (if you try to move left from desktop 1, the window simply flashes once from hide/show, actually a nice feature).

MoveToPreviousDesktop()
{
    global CurrentDesktop, DesktopCount
    mapDesktopsFromRegistry()
    ; Check current desktop is not Desktop 1; if on desktop one, abort

    ;if (CurrentDesktop = 1) {
    ;    return
    ;}
    ; Move the window to the v-desktop on the left
    MoveWindowToOtherDesktop(CurrentDesktop, CurrentDesktop-1, DesktopCount) ; Move 1 v-desktop to the left
}

Documentation

Moving windows to the window edges

Alt + Win + [Home/End/PgUp/PgDn/Del]

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.