Yuav Paub
- Ib daim AHK yog ib tsab ntawv AutoHotkey.
- Qhib ib qho nrog AutoHotkey, lossis kho nws nrog cov ntawv nyeem.
- Hloov rau EXE nrog Ahk2Exe.
Kab lus no piav qhia tias AHK cov ntaub ntawv yog dab tsi thiab yuav ua li cas qhib ib qho ntawm koj lub khoos phis tawj, ntxiv rau yuav ua li cas hloov ib qho mus rau ntau hom executable (EXE).
AHK File yog dab tsi?
A cov ntaub ntawv nrog. AHK cov ntaub ntawv txuas ntxiv yog AutoHotkey tsab ntawv. Nws yog hom ntaub ntawv dawb uas siv los ntawm cov cuab yeej sau ntawv dawb rau kev ua haujlwm ua haujlwm hauv Windows.
Qhov kev pab cuam AutoHotkey siv cov ntaub ntawv no los ua kom cov khoom siv xws li nias lub qhov rais prompts, ntaus ntawv tawm thiab tus lej, thiab ntau ntxiv. Nws yog qhov tshwj xeeb tshaj yog pab tau ntev, kos tawm, thiab rov ua dua uas ib txwm ua raws li cov kauj ruam tib yam.
Yuav qhib li cas AHK Cov Ntaub Ntawv
Txawm tias cov ntaub ntawv AHK tsuas yog cov ntawv nyeem xwb, lawv tsuas yog nkag siab thiab ua tiav hauv cov ntsiab lus ntawm qhov kev pab cuam AutoHotkey dawb. Nws yuav tsum tau nruab rau tib lub computer cov ntaub ntawv raug tua los ntawm kev txiav txim rau nws cov dej num ua.
Ntev npaum li qhov syntax yog lawm, lub software nkag siab txog qhov tau sau rau hauv cov ntaub ntawv raws li cov lus txib uas AutoHotkey yuav tsum ua raws.
Ua tib zoo saib xyuas tsuas yog siv cov ntaub ntawv ua tiav zoo li cov no uas koj tau tsim koj tus kheej lossis koj tau rub tawm los ntawm qhov chaw ntseeg siab. Lub sijhawm muaj AHK cov ntaub ntawv muaj nyob rau hauv lub computer uas muaj AutoHotkey ntsia yog lub sijhawm koj tso koj lub khoos phis tawj muaj kev pheej hmoo. Cov ntaub ntawv yuav muaj cov ntawv sau tsis zoo uas tuaj yeem zais ntau yam kev puas tsuaj rau koj tus kheej cov ntaub ntawv thiab cov ntaub ntawv tseem ceeb.
Txhua yam uas tau hais, vim tias AHK cov ntaub ntawv tau sau rau hauv cov ntawv dawb, cov ntawv sau ntawv (xws li Notepad hauv Windows lossis ib qho los ntawm peb Cov Ntawv Sau Ntawv Dawb Zoo Tshaj Plaws) tuaj yeem siv los tsim cov kauj ruam thiab hloov pauv rau cov ntaub ntawv uas twb muaj lawm. Ib zaug ntxiv, txawm li cas los xij, AutoHotkey yuav tsum tau teeb tsa los ua kom cov lus txib suav nrog hauv cov ntawv nyeem ua tau ib yam dab tsi.
Qhov no txhais tau tias yog koj ua AHK cov ntaub ntawv hauv koj lub computer, thiab nws ua haujlwm zoo nrog AutoHotkey ntsia, koj tsis tuaj yeem xa cov ntaub ntawv tib yam rau lwm tus uas tsis muaj software nruab thiab cia siab tias yuav ua haujlwm rau lawv., ib too. Ntawd yog, tshwj tsis yog koj hloov nws mus rau EXE, uas koj tuaj yeem kawm paub ntxiv txog hauv ntu hauv qab no.
Nws yuav tsis zoo li koj tau qhib AHK cov ntaub ntawv yog tias cov lus qhia hauv cov ntaub ntawv tsis ua qee yam pom tseeb. Piv txwv li, yog tias koj li tau teeb tsa los tsuas yog ntaus ib kab lus tom qab koj tau nkag mus rau ib qho tshwj xeeb ntawm cov keyboard commands, ces qhib cov ntaub ntawv tshwj xeeb yuav tsis nthuav tawm lub qhov rais lossis qhov qhia tias nws tab tom khiav. Txawm li cas los xij, koj yuav paub tseeb tias koj tau qhib ib qho yog tias nws tau teeb tsa los qhib lwm cov kev pab cuam, kaw koj lub khoos phis tawj, thiab lwm yam - qee yam pom tseeb.
Txawm li cas los xij, tag nrho cov ntawv qhib tau pom hauv Task Manager, nrog rau hauv thaj chaw ceeb toom ntawm Windows taskbar. Yog li yog tias koj tsis paub meej tias ib tus neeg ua haujlwm hauv keeb kwm yav dhau los, nco ntsoov xyuas cov cheeb tsam ntawd.
Yuav ua li cas hloov ib qho
AHK cov ntaub ntawv tuaj yeem hloov mus rau EXE kom lawv tuaj yeem khiav yam tsis tas yuav tsum tau teeb tsa AutoHotkey. Koj tuaj yeem nyeem ntxiv txog kev hloov mus rau EXE ntawm lub tuam txhab Hloov Tsab Ntawv rau EXE (ahk2exe) nplooj.
Yeej, txoj kev nrawm tshaj plaws los ua qhov ntawd yog nyem rau ntawm cov ntaub ntawv thiab xaiv Compile Script. Koj tuaj yeem ua qhov kev hloov pauv no los ntawm Ahk2Exe program suav nrog hauv AutoHotkey's installation folder. Koj tuaj yeem tshawb nrhiav nws los ntawm Start menu lossis saib hauv daim nplaub tshev no:
C:\Program Files\AutoHotkey\Compiler
AutoIt yog ib qho kev pab cuam uas zoo ib yam li AutoHotkey tab sis siv AUT thiab AU3 cov ntaub ntawv tawm tswv yim. Tej zaum yuav tsis muaj ib txoj hauv kev yooj yim los hloov AHK rau ib qho ntawm cov hom ntawv, yog li koj yuav tsum tau rov sau tsab ntawv hauv AutoIt tag nrho yog tias qhov no yog qhov koj ua tom qab.
AHK Cov ntaub ntawv piv txwv
Hauv qab no yog ob peb yam piv txwv ntawm AutoHotkey scripts. Tsuas yog luam ib qho rau hauv cov ntawv nyeem, txuag nws nrog AHKcov ntaub ntawv txuas ntxiv, thiab tom qab ntawd qhib nws ntawm lub khoos phis tawj uas khiav AutoHotkey. Lawv yuav khiav hauv keeb kwm yav dhau (koj yuav tsis "pom" lawv qhib) thiab ua haujlwm tam sim ntawd thaum cov yuam sij raug cuam tshuam.
Qhov no yuav qhia lossis zais cov ntaub ntawv zais txhua lub sijhawm Windows thiab H tus yuam sij raug nias tib lub sijhawm. Qhov no yog sai dua li manually qhia / zais cov ntaub ntawv zais.
; Qhia lossis zais cov ntaub ntawv zais
h::
RegRead, HiddenFiles_Status, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden
If HiddenFiles_Status=2 RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, 1
Lwm
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, 2
WinGetClass, eh_Class, A
If (eh_Class="32770" LOSSIS A_OSVersion="WIN_VISTA")
xa, {F5}
Lwm PostMessage, 0x111, 28931,,, A
Return
Cov hauv qab no yog ib tsab ntawv yooj yim dua uas tuaj yeem hloov kho tau raws li koj nyiam. Nws yuav qhib ib qhov kev pab cuam nrog ib tug ceev keyboard shortcut. Hauv qhov piv txwv no, peb tau teeb tsa kom qhib Notepad thaum WIN + N nias.
n::Run Notepad
Ntawm no yog qhov zoo sib xws uas sai sai qhib Command Prompt los ntawm txhua qhov chaw:
p::Khiav cmd
Saib AutoHotkey Quick Reference rau cov lus nug syntax, thiab AutoHotkey Script Showcase rau ntau cov qauv sau.
Tseem qhib tsis tau?
Yog tias koj cov ntaub ntawv tsis khiav thaum AutoHotkey raug teeb tsa, thiab tshwj xeeb tshaj yog tias nws tsis qhia koj cov lus txib thaum saib nrog cov ntawv nyeem, ces muaj qhov zoo tiag tiag koj tsis muaj ib qho ntawm cov no. scripts.
Qee cov ntaub ntawv siv cov lus kawg ntawm qhov kawg uas tau sau ntau yam xws li "AHK," tab sis qhov ntawd tsis tau txhais hais tias koj yuav tsum kho cov ntaub ntawv sib npaug - lawv tsis tas yuav qhib nrog tib cov kev pab cuam lossis hloov nrog cov tib cov cuab yeej.
Piv txwv li, tej zaum koj yeej muaj AHX cov ntaub ntawv, uas yog WinAHX Tracker Module cov ntaub ntawv uas tsis muaj feem cuam tshuam rau cov ntawv sau siv nrog AutoHotkey. Los yog nws tuaj yeem yog AHS cov ntaub ntawv siv nrog Photoshop.
Lwm qhov zoo sib xws-suab tab sis txawv cov ntaub ntawv txuas ntxiv yog APK. Cov no yog cov ntawv thov uas khiav ntawm Android operating system thiab nyob deb ntawm cov ntawv nyeem raws li qhov ua tau, yog li yog tias koj muaj ib qho ntawm cov ntawd, koj yuav tsis tuaj yeem siv AutoHotkey openers los ntawm saum toj los qhib nws.
ASHX cov ntaub ntawv yog lwm qhov piv txwv. Tsuas yog ib tsab ntawv ntxiv rau cov ntaub ntawv txuas ntxiv, tab sis hom ntawv tau ua nrog ASP. NET web server daim ntawv thov hloov.
Lub ntsiab lus ntawm no yog tshawb nrhiav cov ntaub ntawv txuas ntxiv koj cov ntaub ntawv siv yog li koj tuaj yeem nrhiav qhov kev pabcuam tsim nyog uas tuaj yeem qhib lossis hloov cov ntaub ntawv.