1. i can run the entire script as admin and run the command line no problem (altho i prefer the second option).
2. i can run an elevated powershell through autohotkey to run the command line (altho i have no clue how, the "run" function doesn't have an "admin" parameter)
what do you think is the better approach and how to implement it?
also in any case i don't want text boxes popping out asking "are you sure you want to run as admin", i want this done the hidden way.
thanks in advance
Code: Select all
^numpad1::{
Run "PNPUTIL /disable-device /deviceid `"MY_HID_HERE_123`""
}