Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] option to disable all hotkeys on Full-Screen Application #42

Open
Satanarious opened this issue Sep 11, 2022 · 8 comments
Assignees

Comments

@Satanarious
Copy link

No description provided.

@wandersick
Copy link
Owner

Hi. Thanks for your request. Would you describe how having this feature would help?

@Satanarious
Copy link
Author

Whenever I play games which are usually fullscreen, since I autorun aerozoom on startup, many hotkeys activate while I'm fullscreen. Usually the left+right click while I'm playing FPS games

@Satanarious
Copy link
Author

Satanarious commented Sep 11, 2022

Or is there a hotkey to disable all hotkeys? without using the tray icon

@wandersick
Copy link
Owner

wandersick commented Sep 12, 2022

I see. Please try the below workaround which uses Sysinternals PsSuspend to suspend and resume AeroZoom, and then Windows shortcuts to enable hotkeys.

Step 1. Download pssuspend.exe from Sysinternals Live and save it in a directory e.g. C:\Windows that would enable you to run pssuspend.exe without specifying the full path (or any other directories specified in the path variable).

Step 2. Create the below scripts

a. AeroZoom_Suspend.bat

@echo off
PsSuspend AeroZoom_Alt.exe
PsSuspend AeroZoom_Alt_x64.exe
PsSuspend AeroZoom_Ctrl.exe
PsSuspend AeroZoom_Ctrl_x64.exe
PsSuspend AeroZoom_Shift.exe
PsSuspend AeroZoom_Shift_x64.exe
PsSuspend AeroZoom_Win.exe
PsSuspend AeroZoom_Win_x64.exe
PsSuspend AeroZoom_MouseL.exe
PsSuspend AeroZoom_MouseL_x64.exe
PsSuspend AeroZoom_MouseM.exe
PsSuspend AeroZoom_MouseM_x64.exe
PsSuspend AeroZoom_MouseR.exe
PsSuspend AeroZoom_MouseR_x64.exe
PsSuspend AeroZoom_MouseX1.exe
PsSuspend AeroZoom_MouseX1_x64.exe
PsSuspend AeroZoom_MouseX2.exe
PsSuspend AeroZoom_MouseX2_x64.exe

b. AeroZoom_Resume.bat

@echo off
PsSuspend -r AeroZoom_Alt.exe
PsSuspend -r AeroZoom_Alt_x64.exe
PsSuspend -r AeroZoom_Ctrl.exe
PsSuspend -r AeroZoom_Ctrl_x64.exe
PsSuspend -r AeroZoom_Shift.exe
PsSuspend -r AeroZoom_Shift_x64.exe
PsSuspend -r AeroZoom_Win.exe
PsSuspend -r AeroZoom_Win_x64.exe
PsSuspend -r AeroZoom_MouseL.exe
PsSuspend -r AeroZoom_MouseL_x64.exe
PsSuspend -r AeroZoom_MouseM.exe
PsSuspend -r AeroZoom_MouseM_x64.exe
PsSuspend -r AeroZoom_MouseR.exe
PsSuspend -r AeroZoom_MouseR_x64.exe
PsSuspend -r AeroZoom_MouseX1.exe
PsSuspend -r AeroZoom_MouseX1_x64.exe
PsSuspend -r AeroZoom_MouseX2.exe
PsSuspend -r AeroZoom_MouseX2_x64.exe

Tip: You may remove any lines/executables/modifiers you don't use to speed up the scripts.

Modifier Executable
Alt key AeroZoom_Alt.exe and AeroZoom_Alt_x64.exe
Ctrl key AeroZoom_Ctrl.exe and AeroZoom_Ctrl_x64.exe
Shift key AeroZoom_Shift.exe and AeroZoom_Shift_x64.exe
Windows key AeroZoom_Win.exe and AeroZoom_Win_x64.exe
Left mouse button AeroZoom_MouseL.exe and AeroZoom_MouseL_x64.exe
Right mouse button AeroZoom_MouseR.exe and AeroZoom_MouseR_x64.exe
Middle mouse button AeroZoom_MouseM.exe and AeroZoom_MouseM_x64.exe
X1 mouse button AeroZoom_MouseX1.exe and AeroZoom_MouseX1_x64.exe
X2 mouse button AeroZoom_MouseX2.exe and AeroZoom_MouseX2_x64.exe

Step 3. Create shortcuts (*.lnk files) to the *.bat scripts on Desktop

image

a. From Desktop, right-click AeroZoom_Suspend.bat - Shortcut.lnk and edit its properties. Choose a hotkey for suspending, e.g. Ctrl+Shift+Alt+S:

image

b. From Desktop, right-click AeroZoom_Resume.bat - Shortcut.lnk and edit its properties. Choose a hotkey for resuming, e.g. Ctrl+Shift+Alt+R:

image

Note:

  • The first time you run pssuspend.exe, you will asked to accept the Sysinternals EULA
  • In one of my attempts, my system becomes a bit sluggish while AeroZoom is suspended. I hope your experience will be better than mine.

Hope that helps.

Reference: https://stackoverflow.com/questions/11831308/how-can-i-suspend-resume-a-running-program-from-command-line-in-windows

In the future, your feature will be considered to be implemented in AeroZoom using the Suspend function:
https://www.autohotkey.com/docs/commands/Suspend.htm

@wandersick wandersick self-assigned this Sep 12, 2022
@Satanarious
Copy link
Author

Well, thanks for the workaround but this seems like I would have to keep in mind every time to disable aerozoom and then again enable it manually using a shortcut which can be easily done by the tray icon. I think the workaround is just an overdo compared to the tray icon feature; anyways thanks. I was just looking for a way for it to disable itself on Fullscreen, just like how rainmeter does.

@wandersick
Copy link
Owner

wandersick commented Sep 12, 2022

Hello. Just to clarify you don't have to run any of the shortcuts. Creating shortcuts on Desktop is just a means to enable the hotkeys below:

Suspend using Ctrl+Shift+Alt+S hotkey:

image

Resume using Ctrl+Shift+Alt+R hotkey:

image

@wandersick
Copy link
Owner

wandersick commented Sep 12, 2022

Because you asked:

Or is there a hotkey to disable all hotkeys? without using the tray icon

@Satanarious
Copy link
Author

Because you asked:

Or is there a hotkey to disable all hotkeys? without using the tray icon

Because I thought that this feature might already be implemented and maybe I didn't know about it. No worries. I'll manually do it until the feature is added in some update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants