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 "prost dostop kot oskrbnik" za AutoHotKey skripte v sistemu Windows Vista ali 7

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. Kot redni bralci vedo dobro, Im 'a ogromen pahljača od uporabe AutoHotKey avtomatizirati mojo celotno računalniško izkušnjo ... ampak v operacijskem sistemu Windows 7 in Vista obstaja resna omejitev, saj ne morete zagnati skript kot skrbnik, ki ga privzeto. This means that your hotkeys can't interact with windows running in Admin mode… so how do we get around this? To pomeni, da vaše hotkeys ne more interakcijo z okni teče v načinu Admin ... torej kako zaslužiti okrog to?

There are three solutions to this problem: Obstajajo tri rešitve za ta problem:

  • Completely Disable UAC – Not the best solution for security purposes, but Popolnoma onesposobiti UAC - Ni najboljša rešitev za varnostne namene, vendar it works to tovarna . .
  • Compile your script to an executable. Compile vaš scenarij v izvršljiv.
  • Hack the registry and add “Run as Administrator” to the context menu. Hack registra in doda "prost dostop kot oskrbnik" v zveza jedilnik.

Compile Script as Executable Compile Script kot izvršljiv

All you have to do is right-click on the script, choose “Compile Script”… Vse kar morate storiti je, desno-kliknite na scenarij, izberite "Compile Script" ...

image

And now you can run the executable version as administrator: In zdaj vi moči prost dostop izvršljiv prevod kot administrator:

image

This isn't the perfect solution, however. To ni idealna rešitev, vendar. I edit my script all the time, so having to recompile each time I make an edit… would get annoying. Urejam scenarij ves čas, tako da bi prevedem vsakič, ko sem uredi ... da bi dobil siten.

Manual Registry Hack for AutoHotkey “Run as Administrator” Register Manual Hack za AutoHotKey "prost dostop kot oskrbnik"

Open up regedit through the start menu search or run box, and then browse down to the following key: Open up regedit skozi iskanje začetek jedilnik ali polje teči in poiščite do naslednjih ključnih:

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. Z desnim klikom na "Shell", na levi strani in ustvarite nov ključ imenovan "runas", nato ustvarite ključ imenovan "Command" pod njim. Then create or set the following two values on the right-hand side, adjusting the path if necessary. Nato ustvarite ali iz naslednjih dveh vrednosti na desni strani, prilagoditev poti, če je to potrebno.

Name Ime Value Vrednost
(Default) (Privzeto) “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. Privzeti ključ je že tam, samo treba določiti vrednost.

Now when you right-click on an AutoHotkey script, you'll see the option to Run as Administrator: Zdaj, ko desni klik na scenarij AutoHotKey, boste videli možnost Run as Administrator:

image

Download Registry Hack Download Registry Hack

Download, extract, and double-click on the AdminAutoHotkey.reg to enter the information into the registry. Download, ekstrakt, in dvokliknite na AdminAutoHotkey.reg za vnos podatkov v register. There's also a removal script included. Tam je tudi odstranitev scenarij vključeni.

Note that this registry hack will only work if you installed AutoHotkey into the default location, otherwise you'll have to modify the paths. Upoštevajte, da ta registracija kramp deluje le, če ste namestili AutoHotKey na privzeto mesto, sicer boste morali spremeniti poti.

Download AdminAutoHotkey Registry Hack Download AdminAutoHotkey Registry Hack

This article was originally written on 03/3/08 Tagged with: Ta članek je bil prvotno napisan na 03/3/08 Tagged with: Vista Tips & Tweaks Vista Nasveti in Tweaks , , Windows 7 Windows 7 , , Windows 7 Tips Windows 7 Nasveti , , Windows Vista Windows Vista

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (6) Komentarji (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. Mislim, da tako dolgo, kot je lupina ključ imenovan "runas" razgled prevzame ukaz v privzete vrednosti, je treba opraviti s privilegiji in oskrbnik "IsolatedCommand" vrednost ni potrebna.

  2. The Geek Geek

    I based that registry structure on some existing MS keys… I, ki temelji registracija, da se struktura na nekaterih obstoječih ključev 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. Jaz preizkušen in se ne zdi, da bo potrebna, vendar je možno, pa je v rabi nekje drugje, da sem vedela na tej točki, zato sem se vključila zaradi doslednosti.

  3. jd2066 jd2066

    Interesting. Zanimiv. 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 moj komentar o ugotovitvah HKCR \ batfile \ shell \ runas \ command, ki nimajo takega vrednosti in da z uporabo ključnih takega delal za druge stvari, kot VBS pila tudi.
    It does appear though that other ones like HKCR\exefile\shell\runas\command do have that value. To ne zdi pa se, da drugih, ki so kot HKCR \ exefile \ shell \ runas \ ukaz imajo to vrednost.

  4. The Geek Geek

    Yeah, it seems like there's an inconsistency. Ja, se zdi, kot obstaja neskladje.

  5. martin moltzau martin moltzau

    If You want a free malware & spyware to Your Windows Vista Če hočeš prost malware in spyware na vaš sistem 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: Pojdi na: Windows Live OneCare Center zateči prevod zakaj razgled - omogočiti pop-up za ta oddelek in izberite Complete pregled pri

    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 za Windows Vista na Microsoftovem-Senter - prvi lahko namestite Silverlight za Vista in uporabo novih beta-različica Downloadsenter, je veliko hitreje!

    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 sever smešen od Symantec - lahko poskusite nekaj časa za svobodne in skeniranje vseh vaših CD-jev in DVD-jev - se boste surpriced izvedeti, koliko od njih, ki je skrita vohunsko opremo in nekateri so tudi dobili malware - Če Hočeš s tem - Nab stroški približno 10 $ z enim let obvestila - ki ni zelo drag, kajne?

    Thank You For A Fantastic & Helpful Website Thank You For A Fantastic & Helpful Website
    I will be back – again & again Bom nazaj - spet in spet

    Sincerely Yours: Martin Moltzau Sincerely Yours: Martin Moltzau

  6. Peterpansen Peterpansen

    thx, the compile soution works great for me! thx, sestavi soution tovarna velik navzlic!


Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
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.