Subscribe to How-To Geek Mag-subscribe sa Paano-Upang Geek

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 Idagdag ang "Run bilang Tagapangasiwa" para sa AutoHotkey Scripts sa Windows 7 o 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. Tulad ng mga regular na mambabasa alam well, I'ma malaking tagahanga ng gamit sa AutoHotkey-automate ang aking buong computing experience ... pero sa Windows 7 at Vista may isang malubhang limitasyon dahil hindi ka maaaring magpatakbo ng isang script bilang Administrador sa pamamagitan ng default. This means that your hotkeys can't interact with windows running in Admin mode… so how do we get around this? Ito ay nangangahulugan na ang iyong mga hotkeys ay hindi maaaring makipag-ugnay sa mga bintana ng tumatakbo sa Admin mode ... kaya paano makuha namin ang paligid ng ito?

There are three solutions to this problem: May tatlong mga solusyon sa problemang ito:

  • Completely Disable UAC – Not the best solution for security purposes, but Ganap na-disable ang UAC - Hindi ang pinakamahusay na solusyon para sa mga layuning pang-seguridad, ngunit it works ito gumagana . .
  • Compile your script to an executable. Itala ang iyong script sa isang executable.
  • Hack the registry and add “Run as Administrator” to the context menu. Tadtarin ang pagpapatala at idagdag ang "Run bilang Tagapangasiwa" sa menu ng konteksto.

Compile Script as Executable Script sumulat ng libro bilang executable

All you have to do is right-click on the script, choose “Compile Script”… Lahat ng kailangan mong gawin ay i-right click sa script, piliin ang "Script sumulat ng libro" ...

imahen

And now you can run the executable version as administrator: At ngayon, maaari mong patakbuhin ang mga maipapatupad na bersyon bilang administrator:

imahen

This isn't the perfect solution, however. Ito ay hindi ang perpektong solusyon, gayunman. I edit my script all the time, so having to recompile each time I make an edit… would get annoying. I-edit ang aking script sa lahat ng oras, kaya nagkakaroon ng recompile sa bawat oras na gumawa ako ng isang i-edit ang ... nais makakuha ng nakakainis na.

Manual Registry Hack for AutoHotkey “Run as Administrator” Manual Registry hack para AutoHotkey "Run bilang Tagapangasiwa"

Open up regedit through the start menu search or run box, and then browse down to the following key: Buksan up regedit sa pamamagitan ng paghahanap magsimula menu o magpatakbo ng kahon, at pagkatapos ay i-browse down sa mga sumusunod na susi:

HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell HKEY_CLASSES_ROOT \ AutoHotkeyScript \ Shell

imahen

Right-click on “Shell” on the left-hand side and create a new key called “runas”, then create a key called “Command” below it. Right-click sa "Shell" sa kaliwang bahagi at lumikha ng isang bagong key na tinatawag na "runas", pagkatapos ay lumikha ng isang susi na tinatawag na "Command" sa ibaba ito. Then create or set the following two values on the right-hand side, adjusting the path if necessary. Pagkatapos gumawa o itakda ang dalawang sumusunod na mga halaga sa kanang bahagi, pag-aayos ang landas na kung kinakailangan.

Name Pangalan Value Halaga
(Default) (Default) “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. Ang default na susi na dapat ay diyan, kailangan lang para itakda ang halaga.

Now when you right-click on an AutoHotkey script, you'll see the option to Run as Administrator: Ngayon, kapag ikaw ay i-right click sa isang script AutoHotkey, makikita ninyo ang opsyon na Run bilang Tagapangasiwa:

imahen

Download Registry Hack I-download ang Registry hack

Download, extract, and double-click on the AdminAutoHotkey.reg to enter the information into the registry. I-download, katas, at i-double click sa AdminAutoHotkey.reg upang ipasok ang impormasyon sa pagpapatala. There's also a removal script included. Mayroon din ng isang pag-aalis ng script kasama.

Note that this registry hack will only work if you installed AutoHotkey into the default location, otherwise you'll have to modify the paths. Tandaan na ang registry hack na ito ay gagana lamang kung ikaw ay naka-install na AutoHotkey sa lokasyon ng default, kung hindi mo na kailangang baguhin ang mga landas.

Download AdminAutoHotkey Registry Hack I-download ang Registry AdminAutoHotkey hack

This article was originally written on 03/3/08 Tagged with: Ang artikulong ito ay orihinal na isinulat sa 03/3/08 Tagged with: Vista Tips & Tweaks Vista Tips at Tweaks , , Windows 7 Windows 7 , , Windows 7 Tips Windows 7 Tips , , Windows Vista Windows Vista

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (6) Comments (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. Sa tingin ko hangga't ang shell susi ay pinangalanang "runas" Vista assumes ang utos sa default na halaga ay dapat patakbuhin sa Tagapangasiwa ng mga pribilehiyo at ang "IsolatedCommand" halaga ay hindi kinakailangan.

  2. The Geek Ang Geek

    I based that registry structure on some existing MS keys… Ako base na pagpapatala ng istraktura sa ilang mga umiiral na mga pindutan ng 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. Nasubukan ko at hindi nito ay mukhang kinakailangan ngunit ito ay posible ito ay ginagamit sa iba pang lugar na ako ng hindi alam ng sa puntong ito, kaya ko isinama ito para sa pagbabago.

  3. jd2066 jd2066

    Interesting. Kagiliw-giliw. 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. Base ko ang aking mga puna sa mga natuklasan ng HKCR \ batfile \ shell \ runas \ command na key ay hindi na nagkakaroon ng halaga at gamit ang isang susi gusto na nagtrabaho para sa iba pang mga bagay tulad ng VBS file masyadong.
    It does appear though that other ones like HKCR\exefile\shell\runas\command do have that value. Ito ay lalabas kahit na ang ibang mga katulad HKCR \ exefile \ shell \ runas \ command na kailangan na halaga.

  4. The Geek Ang Geek

    Yeah, it seems like there's an inconsistency. Yeah, tila tulad ng may-iiba-iba.

  5. martin moltzau sendmatin moltzau

    If You want a free malware & spyware to Your Windows Vista Kung nais mo ng isang libreng malware at spyware sa Iyong 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: Pumunta sa: Windows Live OneCare Center Beta salin para sa Vista - payagan ang mga pop-up para sa seksyong ito at piliin ang Kumpletuhin ang check up

    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: I-download: Windows defender para sa Windows Vista sa Microsoft Download-senter - unang Maaari mong i-install ang Silverlight para sa Vista at gamitin ang bagong beta-version ng Downloadsenter, lubhang mas mabilis!

    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: I-download ang Norton Antibot mula sa Symantec - maaari ninyong subukan na ito para sa ilang oras para sa libre at i-scan ang lahat ng iyong mga cd at dvd's - Ikaw ay surpriced upang malaman kung paano marami sa kanila na may mga hidden ispya-tinda at ang ilan ay may nakuha din sa malware - Kung Gusto mong na ito - dakpin gastos tungkol sa $ 10 sa isang taon ng mga update - na hindi masyadong mahal, ito?

    Thank You For A Fantastic & Helpful Website Maraming Salamat Para sa Isang Fantastic & Nakatutulong Website
    I will be back – again & again Ako ay bumalik - muli at muli

    Sincerely Yours: Martin Moltzau Sincerely Yours: Martin Moltzau

  6. Peterpansen Peterpansen

    thx, the compile soution works great for me! thx, ang sumulat ng libro soution gumagana malaki para sa akin!


Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
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.