[A4] Faster use of your keyboard: autohotkey (2)

Source: Internet
Author: User

After some time of practice and feedback, I had a lot of experience, so I wrote another article for this.Article.

The two problems in the first article are basically solved: ([a2] Faster use of your keyboard: autohotkey)

The first problem is Chinese garbled characters. One solution is to use a clipboard, and the other is to allow keys to correspond to the key order of an input method.AutohotkeyThe message was originally a one-click operation, which I did not understand during the last article.

The second problem: the maximum and minimum window switchover, and finally find the function to get this state. UseWinget, style, style,To obtain the window status, use the statementStyle & 0x1000000Obtains whether the window is maximized. For details, see the last postCode.

In addition, I browsed the code shared by others on the Forum and saw a lot of well-written code. For example, there is a mine clearance record that can be automatically cleared on my computer : advanced: 14 seconds ... For details, see http://ahk.5d6d.com/viewthrea D. php? Tid = 1921 & extra = Page % 3d4% 26amp % 3 borderby % 3 dreplies

Finally, paste the code I wrote. The first twoIncludeThe file is found on the autohotkey forum, so it is not posted.In addition, as a senior student, I am mainly engaged in my daily operations. Hope to help you.

 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; AutohotkeyConfiguration File

; By jerryheNov 29,2009

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;

# Include userbottomattf4.ahk

# Include onekeyactivedirofsoftware. Ahk

;Set the startup directory

Programdir: = "D: \ myprogramfiles"

;Press and holdALT, SimilarVimOperations

Lalt & J: Send {down}

Lalt & K: Send {up}

Lalt & H: Send {left}

Lalt & L: Send {right}

 

# N: Run gvim

# C: Run powercalc.exe

 

# M ::

Winget, style, style,

If (Style & 0 x0 1000000)

{

Winrestore,

}

Else

{

Winmaximize,

}

Return

 

 

# O ::;SwitchLingoes

Ifwinexist lingoes

{

Winactivate

}

Else

{

Run % programdir % \ lingoes

Winwait lingoes

Winactivate

}

Return

# P ::;SwitchSnagit

Ifwinexist snagit

{

Winactivate

}

Else

{

Run % programdir % \ snagit

Winwait snagit

Winactivate

}

Return

 

 

;Common directory startup

#7: Run % programdir % \ startdesktop. bat

#8: Run % programdir % \ startworkdir. bat

#9: Run % programdir % \ startcourse2009dir. bat

#0: Run % programdir % \ startthisdir. bat

 

;Common key combinations

Rshift & M ::;InWordInsertMathtypeCharacter

Setkeydelay, 50

Send {alt} yy01

Return

 

Rshift & F:; create a new folder

Setkeydelay, 50

Send {alt} fwfw

Return

 

Rshift & D ::;Back to directory

Send CD .. {enter}

Return

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.