Productivity tools AutoHotKey

Automatic hotkey

powerful. Easy to learn.

Ultimate automation scripting language for Windows.

Download - Download

AutoHotkey - official website

Enter the official website, nothing to say, just click Download to download and install

After successful installation, without any prompting, directly close the installer can!

Create a program - to create a project

New desktop, right →→ →→ AutoHotkey Script to create a script

Create a text file, modify the file suffix format is also OK .ahk

Shortcut Keys

; # Represents the win,

+ Represents shift, ^ represents the Ctrl,

! On behalf of Alt;

If you want to comment, you can use a semicolon can also be used / / **

Ctrl ^ ^
Shift + +
Alt ! !
Windows key # #
#, ^, +,!, Etc. Generally do not {#}, {^}, {+}, {!}, Etc.
Left Ctrl, Left Shift, Alt left <^ <+ <!
Right Ctrl, Right Shift, Alt Right >^ >+ >!
Enter {enter}
Tab {Tab}
F1, F12, etc. F1, F12, etc. {F1}, {F12}, etc.
Esc {Esc} or {Escape}
Blank {Space}
Backspace {Backspace} or {BS}
Delete {Delete} or {Del}
Insert {Insert} or {Ins}
↑、↓、←、→ {Up}、{Down}、{Left}、{Right}
Home - key {Home}
End key {End}
PageUp key {PgUp}
PageDown键 {PgDn}
CapsLock key {CapsLock}

Substitute character - replacement character

AutoHotkey - Chinese script manual
let's make a simple example: Enter chinar automatically be replacedhttp://www.chinar.xin

Notepad open the input:

The first written:

::oyk::http://oykperson.xyz/

The second writing:

::oyk::
Send http://oykperson.xyz/
return
::bky::
Send https://www.cnblogs.com/
return

AHK syntax: Send command is sent, return is the end

After saving, right →→ Run Script to run a script file

Then, when we enter text chinarwhen you press the Spacebar / Enter key / tab key will automatically help us replacedhttp://www.chinar.xin

Speed ​​open the page

#0::Run https://tinypng.com/

Win+0

Custom Shortcuts - to open a file or URL

!n::run notepad
!c::run, D:\SoftwareKit\_jade_new_soft\cmd_markdown_win64\Cmd Markdown.exe

Alt + n + c launcher or

A copy of the file path button

^+c::
; null= 
send ^c
sleep,200
clipboard=%clipboard% ;%null%
tooltip,%clipboard%
sleep,500
tooltip,
return

You need only Ctrl + shift + c to copy the file path

Quick play common language abbreviation

::/mail::[email protected]
::/jeff::http://www.jeffjade.com/
::/con::console.log();
::/js::javascript:;
::/fk::轩先生这会子肯定在忙,请骚后。thx。祝君:天天开心,日日欣悦。

Type /jeffafter, plus a space , or the Tab or Enter

Activate / open / hidden programs

#c::
IfWinNotExist ahk_class Chrome_WidgetWin_1
{
    Run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
    WinActivate
}
Else IfWinNotActive ahk_class Chrome_WidgetWin_1
{
    WinActivate
}
Else
{
    WinMinimize
}
Return

Shortcuts: Win + C

Tip: Avoid conflict and system shortcuts

Systems are commonly used shortcut keys Ctrl + XX and use Alt + XX to combine, and Win + XX little, so we should try to use Win + XX combination

Guess you like

Origin www.cnblogs.com/ouyangkai/p/12550390.html