petstotal.blogg.se

Run as administrator not working
Run as administrator not working










run as administrator not working

This can be achieved by replacing your "runas" sections with "Run *runas" For example if I was trying to elevate a cmd that I would normally call with If you want ahk to run something for you as an admin, you need to make sure that you have AHK ask for elevation perms when running it.By creating a batch file or adding any additional snippet? Can I do this from the autohotkey script itself. I would like it to open up at a prespecified directory. The numpad left and 4 are only to cover both possible cases with number lock on or off.Īlso, there's another minor concern which is that anaconda opens up in the same directory as my autohotkey script. Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Anaconda Prompt (Anaconda).lnk" ^NumpadLeft:: Run "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Anaconda Prompt (Anaconda).lnk" Here's my code: ^Numpad4:: Run "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Anaconda Prompt (Anaconda).lnk" I followed the code instructions found in autohotkey forums but this does not seem to work. If I press Ctrl+Shift+Numpad4 The anaconda prompt opens up as an admin. Such that when I press Ctrl+Numpad4 I will get an anaconda prompt opened up.

run as administrator not working

I created an Autohotkey script to open the Anaconda Command Prompt.












Run as administrator not working