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