aerozoom icon indicating copy to clipboard operation
aerozoom copied to clipboard

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

Open Satanarious opened this issue 2 years ago • 8 comments

Satanarious avatar Sep 11 '22 12:09 Satanarious

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

wandersick avatar Sep 11 '22 15:09 wandersick

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 avatar Sep 11 '22 15:09 Satanarious

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

Satanarious avatar Sep 11 '22 15:09 Satanarious

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 avatar Sep 12 '22 04:09 wandersick

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.

Satanarious avatar Sep 12 '22 05:09 Satanarious

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 avatar Sep 12 '22 05:09 wandersick

Because you asked:

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

wandersick avatar Sep 12 '22 05:09 wandersick

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.

Satanarious avatar Sep 12 '22 06:09 Satanarious