I've been looking for a way to check if a running process has Elevated status.
So far, I've tried out the solutions outlined under www.autohotkey.com/boards/viewtopic.php?t=26700, but the solution listed there seems to not work for AHK V2.
Could someone suggest an AHK V2-compatible method of checking if an app is running as an Administrator?
(For additional context, I am using Windows 11 Build 25281, and AHK v2.0.2, if that matters)
Check if running program has Elevated status Topic is solved
-
- Posts: 32
- Joined: 29 Dec 2022, 05:36
Re: Check if running program has Elevated status
While not V2 code, this code may help you on your quest:
viewtopic.php?t=43417
https://github.com/jNizM/AHK_Scripts/blob/master/src/process_thread_handle_module/IsProcessElevated.ahk
viewtopic.php?t=43417
https://github.com/jNizM/AHK_Scripts/blob/master/src/process_thread_handle_module/IsProcessElevated.ahk
Imagine a world without Wikipedia... remember to support the things that you want to see stick around and the causes that matter to you.
Re: Check if running program has Elevated status Topic is solved
Here is v2 -> https://github.com/jNizM/ahk-scripts-v2/blob/main/src/ProcessThreadModule/IsProcessElevated.ahk
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Re: Check if running program has Elevated status
Thanks a lot @jNizM. I found your V1 script while trying to find a solution to this problem, and tried converting it to V2 myself, but to no avail. I even went through your GitHub to try and find a V2 version, but I suppose I didn't look well enough considering it was there all along. Anyways, I appreciate the help a lot.
Thanks to @bl33pingcomputer too for linking jNizM's V1 script.
Thanks to @bl33pingcomputer too for linking jNizM's V1 script.