Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Add "Run as Administrator" for AutoHotkey Scripts in Windows 7 or Vista Dodaj "Uruchom jako administrator" dla AutoHotkey Skrypty w Windows 7 i Vista

As regular readers know well, I'ma huge fan of using AutoHotkey  to automate my entire computing experience… but in Windows 7 and Vista there's a serious limitation since you can't run a script as Administrator by default. Jak stali czytelnicy dobrze wiedzą, jestem ogromnym fanem przy AutoHotkey zautomatyzować całe moje doświadczenie komputerowe ... ale w Windows 7 i Vista nie ma poważne ograniczenia, ponieważ nie można uruchomić skrypt jako administrator by default. This means that your hotkeys can't interact with windows running in Admin mode… so how do we get around this? Oznacza to, że hotkeys nie może wchodzić w interakcje z systemem Windows działa w trybie administratora ... Jak więc obejść ten problem?

There are three solutions to this problem: Istnieją trzy rozwiązania tego problemu:

  • Completely Disable UAC – Not the best solution for security purposes, but Całkowicie wyłączyć UAC - nie jest najlepszym rozwiązaniem dla celów bezpieczeństwa, ale it works to działa . .
  • Compile your script to an executable. Kompilacja skryptu wykonywalnego.
  • Hack the registry and add “Run as Administrator” to the context menu. Hack rejestr i dodać "Uruchom jako administrator" do menu kontekstowego.

Compile Script as Executable Compile Script wykonywalności

All you have to do is right-click on the script, choose “Compile Script”… Wszystko co musisz zrobić, to kliknąć prawym przyciskiem myszy na skrypt, wybierz opcję "Compile Script" ...

image

And now you can run the executable version as administrator: A teraz możesz uruchomić plik wykonywalny jako administrator wersji:

image

This isn't the perfect solution, however. Nie jest to idealne rozwiązanie ma jednak. I edit my script all the time, so having to recompile each time I make an edit… would get annoying. Edytować skrypt cały czas, więc konieczności rekompilacji każdym razem dokonać edycji ... dostanie irytujące.

Manual Registry Hack for AutoHotkey “Run as Administrator” Podręcznik do rejestru siekać dla AutoHotkey "Uruchom jako administrator"

Open up regedit through the start menu search or run box, and then browse down to the following key: Otwórz wpisz polecenie regedit poprzez przeszukiwanie menu Start lub uruchomić pole, a następnie przejdź w dół do następującego klucza:

HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell HKEY_CLASSES_ROOT \ AutoHotkeyScript \ Shell

image

Right-click on “Shell” on the left-hand side and create a new key called “runas”, then create a key called “Command” below it. Kliknij prawym przyciskiem myszy na "Shell" na lewej stronie i utworzyć nowy klucz o nazwie "Uruchom", a następnie utworzyć klucz o nazwie "Command" poniżej. Then create or set the following two values on the right-hand side, adjusting the path if necessary. Następnie należy utworzyć lub ustaw następujące wartości, na prawej stronie, tak by dostosować ścieżkę, jeśli jest to konieczne.

Name Imię Value Wartość
(Default) (Domyślne) “C:\Program Files\AutoHotkey\AutoHotkey.exe” “%1″ %* "C: \ Program Files \ AutoHotkey \ AutoHotkey.exe" "% 1"% *
IsolatedCommand IsolatedCommand “C:\Program Files\AutoHotkey\AutoHotkey.exe” “%1″ %* "C: \ Program Files \ AutoHotkey \ AutoHotkey.exe" "% 1"% *

The default key should already be there, just need to set the value. Domyślny klucz powinien być już istnieje, wystarczy ustawić wartość.

Now when you right-click on an AutoHotkey script, you'll see the option to Run as Administrator: Teraz po kliknięciu prawym przyciskiem myszy na skrypt AutoHotkey, zobaczysz opcję Uruchom jako administrator:

image

Download Registry Hack Pobierz Registry Hack

Download, extract, and double-click on the AdminAutoHotkey.reg to enter the information into the registry. Pobierz, wypakuj i kliknij dwukrotnie AdminAutoHotkey.reg, aby wprowadzić informacje do rejestru. There's also a removal script included. Jest tam również skrypt usunięcia włączone.

Note that this registry hack will only work if you installed AutoHotkey into the default location, otherwise you'll have to modify the paths. Zauważ, że ten wpisywać do rejestru siekać będzie działać tylko w przypadku zainstalowania AutoHotkey w domyślnej lokalizacji, w przeciwnym razie będziesz musiał zmodyfikować ścieżki.

Download AdminAutoHotkey Registry Hack Pobierz AdminAutoHotkey rejestru siekać

This article was originally written on 03/3/08 Tagged with: Ten artykuł został napisany na 03/3/08 Tagged with: Vista Tips & Tweaks Vista Tips & Tweaks , , Windows 7 Windows 7 , , Windows 7 Tips Windows 7 Porady , , Windows Vista Windows Vista

Daily Email Updates Daily Email Updates

You can get our how-to articles in your inbox each day for free. Możesz pobrać nasze instrukcje postępowania w skrzynce odbiorczej codziennie za darmo. Just enter your name and email below: Wystarczy podać swoje imię i adres e-mail:


Name: Imię i nazwisko:
Email: E-mail:

Comments (6) Komentarze (6)

  1. jd2066 jd2066

    I think as long as the shell key is named “runas” Vista assumes the command in the default value is to be run with Administrator privileges and the “IsolatedCommand” value isn't needed. Myślę, że tak długo, jak kluczu shell o nazwie "runas" Vista zakłada polecenie Wartość domyślna to być uruchomiony z uprawnieniami administratora i "IsolatedCommand" wartość nie jest potrzebny.

  2. The Geek Geek

    I based that registry structure on some existing MS keys… I na tej struktury rejestru na niektóre istniejące klucze MS ...

    I tested and it doesn't seem to be necessary but it's possible it's used somewhere else that I'm unaware of at this point, so I included it for consistency. I badane i nie wydaje się konieczne, ale jest możliwe jego użycie gdzieś indziej, że jestem świadom w tym miejscu, więc włączyła ją do spójności.

  3. jd2066 jd2066

    Interesting. Interesujący. I based my comment on findings of the HKCR\batfile\shell\runas\command key not having that value and that using a key like that worked for other things like VBS files too. I na mój komentarz w sprawie ustalenia HKCR \ batfile \ shell \ runas \ Command nie mają tej wartości, a za pomocą klucza, który pracował jak do innych rzeczy, jak również plików VBS.
    It does appear though that other ones like HKCR\exefile\shell\runas\command do have that value. Okazuje się jednak, że pozostałe nie jak HKCR \ Exefile \ shell \ runas \ command mają tę wartość.

  4. The Geek Geek

    Yeah, it seems like there's an inconsistency. Yeah, it seems like there's niespójność.

  5. martin moltzau moltzau martin

    If You want a free malware & spyware to Your Windows Vista Jeśli chcesz za darmo malware i spyware do komputera z systemem Windows Vista

    1: Go to : Windows Live OneCare Center Beta version for Vista – allow pop-up for this section and select Complete check up 1: Przejdź do: Windows Live OneCare Center w wersji beta dla Visty - pozwala pop-up w tej sekcji, a następnie wybierz Sprawdzanie zakończone do

    2: Download: Windows Defender for Windows Vista at Microsoft Download-senter – first You can install Silverlight for Vista and use the new beta-version of the Downloadsenter, it's much quicker! 2: Download: Windows Defender dla systemu Windows Vista w witrynie Microsoft Download-senter - pierwsze można zainstalować Silverlight dla systemu Vista i korzystania z nowych beta-wersję Downloadsenter, to o wiele szybciej!

    3: Download Norton Antibot from Symantec – You can try it for some time for free and scan all your cd's and dvd's – You will be surpriced to find out how many of them that has hidden spy-ware and some have also got malware – If You want to by this – Nab costs about 10$ with one years of updates – that is not very expensive, is it? 3: Download Północ Przeciwciała firmy Symantec - można próbować go przez pewien czas za darmo i skanowania wszystkich dysków CD i DVD - Będziesz surpriced, aby dowiedzieć się, ilu z nich, że ma ukryte spy-ware, a niektóre mają również dostał malware - Jeśli Chcesz tego - koszty Nab około 10 $ w jeden rok aktualizacji - to nie jest bardzo drogie, prawda?

    Thank You For A Fantastic & Helpful Website Thank You For Fantastic & helpful WWW
    I will be back – again & again I will be back - Again & Again

    Sincerely Yours: Martin Moltzau Z pozdrowieniami: Martin Moltzau

  6. Peterpansen Peterpansen

    thx, the compile soution works great for me! thx, skompilować soution works great for me!


Leave a Comment Zostaw komentarz




Leave your Zostaw swój friendly przyjazny comment here. komentarz.

If you have a computer help question, Jeśli masz pytanie pomocy komputera, click here to leave it on the forums Kliknij tutaj, aby pozostawić ją na forum instead. zamiast.

Note: Your comment may not show up immediately on the site. Uwaga: Twój komentarz nie pojawi się od razu na stronie.

Our Friends Nasi Przyjaciele
Getting Started Pierwsze kroki


About How-To Geek O How-To Geek
What Is That Process? Co to jest proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Gadu-Gadu
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.