I created an Autohotkey script to open the Anaconda Command Prompt. Such that when I press Ctrl+Numpad4
I will get an anaconda prompt opened up. If I press Ctrl+Shift+Numpad4
The anaconda prompt opens up as an admin. I followed the code instructions found in autohotkey forums; but this does not seem to work. Here's my code:
^Numpad4:: 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"
^+NumpadLeft::
RunAs, Administrator, #Mypassword
Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Anaconda Prompt (Anaconda).lnk"
RunAs
^+Numpad4::
RunAs, Administrator, #MyPassword
Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Anaconda Prompt (Anaconda).lnk"
RunAs
The numpad left and 4 are only to cover both possible cases with number lock on or off.
What should I do?
Also, there's another minor concern which is that anaconda opens up in the same directory as my autohotkey script. I would like it to open up at a prespecified directory. Can I do this from the autohotkey script itself. By creating a batch file or adding any additional snippet?