• Happy holidays, folks! Thanks to each and every one of you for being part of the Tom's Hardware community!

Question AutoHotkey - Windows 11 ?

tagaria

Honorable
Nov 10, 2017
16
0
10,510
I'm considering using AutoHotkey to write a script that enables my Logitech keyboard's volume control to adjust the volume on my SteelSeries headset. Before proceeding, I want to ensure I've covered all bases. Are there any permissions or potential pitfalls I should be aware of? Is there anything I could accidentally disrupt with a straightforward volume control script?


Thanks!
 
The problem is that you need to have some way of making Autohotkey alter the SteelSeries headset volume. However, with proprietary software /drivers, it is not very likely the manufacturer have included an API so that it can be controlled by other software.
 
The problem is that you need to have some way of making Autohotkey alter the SteelSeries headset volume. However, with proprietary software /drivers, it is not very likely the manufacturer have included an API so that it can be controlled by other software.
But does that matter, even if i make the configuration in Windows?
 
Are you thinking about using the keys to open the windows/app that is used to adjust the volume and then simulates manual adjustments? The one thing that you may have to do (unless they've come up with something else since), is to run the script in admin mode to get this to work also in admin-elevated apps. This opens up an attack surface of slipping in an admin-level code to run on your machine. If you can reliably protect yourself from malware, this may not be a problem.

Other than that, this is one of the things that autohotkey is useful for.

ps: there had been Autohotkey-specific malware in the past.
 
Are you thinking about using the keys to open the windows/app that is used to adjust the volume and then simulates manual adjustments? The one thing that you may have to do (unless they've come up with something else since), is to run the script in admin mode to get this to work also in admin-elevated apps. This opens up an attack surface of slipping in an admin-level code to run on your machine. If you can reliably protect yourself from malware, this may not be a problem.

Other than that, this is one of the things that autohotkey is useful for.

ps: there had been Autohotkey-specific malware in the past.
That is basically one of the pitfalls i was looking for(malware). I was just asking for the sake of convenience. So i think i will skip it!

Thanks!


This thread can be closed.
 
There is an alternative called AutoIt, no idea if it requires admin rights.

Wrote a few scripts in the past. You can double click the script or convert the script to exe to run it.

The problem is that if can control individual sound device.
 
Last edited:
That is basically one of the pitfalls i was looking for(malware). I was just asking for the sake of convenience. So i think i will skip it!
Hey, I understand, but if you change your mind in the future, maybe using ransomware protections on folders with Window Defender or something similar in AV solutions would mitigate this problem. If you explore this path, let us know!