akiver / altbacktick Goto Github PK
View Code? Open in Web Editor NEWSwitch between windows using ALT+backtick
License: MIT License
Switch between windows using ALT+backtick
License: MIT License
On Windows 7, AltBacktick switches between all windows regardless of source process. Normally you'd brush this off as "OS version is not supported", but interestingly I found that it crashes because GetProcessNameFromProcessId
calls OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION)
then GetModuleFileNameEx
on the resulting handle. On Windows 7, this writes an empty string, returns 0 (error), and sets a GetLastError of "Access Denied (5)". However you don't check the error code, so proceed treating every PID as belonging to the same process "".
Interestingly, the Microsoft docs on GetModuleFileNameEx[W]
say that you need "PROCESS_QUERY_INFORMATION and PROCESS_VM_READ access rights". So your existing code may have actually been incorrect according to documentation. But apparently it still works on Windows 10 for some reason?
Replacing PROCESS_QUERY_LIMITED_INFORMATION
with PROCESS_QUERY_INFORMATION | PROCESS_VM_READ
makes this program work on Windows 7 again, and still functions on 10 (did not test on Windows 8/8.1 or 11). Is this change worth adding in mainline?
Interestingly, QueryFullProcessImageNameW
does work with PROCESS_QUERY_LIMITED_INFORMATION
according to documentation. Did you mean to use that function or not?
It would be nice if there was a feature to ignore minimised windows from switching. The behaviour of whether or not to ignore minimised windows could be controlled by a tickbox in the settings menu.
Ctrl+click on an application's icon in the system tray cycles between open windows of that application on the current desktop (natively).
AltBacktick seems to ignore division across desktops and pull windows of the active application over from other desktops onto the current desktop.
I think it would be more usable if it behaved like ctrl+click.
In other operating systems, holding down Shift with ALT-backtick cycles the the windows in reverse order. This is handy when you accidentally go past the window you were looking for because you can just hold down shift to go back to it again. In the current implementation, you have to go through the whole cycle again.
It would be great if this feature could be added to a future release.
I think it would be great if the program allowed adjustments to the hotkey, even if it is only minor choices. For example, I think choosing between Alt+Backtick or Ctrl+Backtick would be extremely helpful to some. Personally, I have hand issues and for that reason I remap Ctrl to my Alt key (so I can use copy/paste/etc). Because of that, I'd like to use Ctrl+Backtick instead for the shortcut (so physically it's like I'm pressing Alt anyway!)
I can understand if allowing any key combination might be much more difficult to implement, so perhaps that's not as feasible of a request.
This is somewhere between a feature request and a recommendation. Pressing Alt+Backtick once, letting go, then pressing again, should simply alternate between two windows of the same application.
To compare to Alt+Tab:
When you press and hold Alt, then repeatedly press Tab, it goes through your application window list in order.
If you press and hold Alt, then press Tab once and let both go, it will switch to the next window only. Next, if you press and hold Alt, then press Tab once and let both go, it will instead go back to the previous window instead of the third window down the line.
Currently AltBacktick does not act in this way, but I think it would be a reasonable assumption for this to be the default behavior. Alternating between two windows is a pretty standard practice.
If I run the program with spanish layout I get key code 220, in english I get 192.
If the license was MIT this utility might be bundled in with PowerToys.
Trying to download the exe file but windows 10 defender detects it as a virus.
I tried AltBacktick because Easy Windows Switcher does not support switching between minimized windows,
however when I tried to switching windows of PotPlayer using AltBacktick, nothing happened.
So I went back to original Easy Windows Switcher, which works for PotPlayer as expected, I do hope there will be a fix for AltBacktick to solve this problem.
as this is meaning to be an improved version of " easy window switcher " you left out one major part...
Windowed Fullscreen applications do not work with this program where as they do work ( with only 2 ) on easy window switcher
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.