[Software recommendation] autohotkey-for faster operations, use your own script to rest your mouse

Source: Internet
Author: User

I know that autohotkey is still reading [a2] last year. It's faster to use your keyboard: autohotkey.ArticleWhen I saw it, I was also worried that I usually had a few things on my computer that needed high-frequency access, but I didn't like to put shortcuts on my desktop, I had to go to the directory every time, so it was so annoying that one of my Logitech mouse went on strike because of my brute force trial. Later, as I saw this article, I triedProgramIt is organized, written to the script, and encapsulated into EXE, so that after each boot, as long as the EXE runs, you can run the program through the shortcut key, very fast.

Next I will share with you some of my frequently used and useful scripts (SpecificCodeYou can refer to the link article I provided or the search engine to find many related tutorials. I will not introduce them here ):

1. Quickly open a program or a directory
# Z: Run notepad; Start Visual Studio 2008 # S: sysprogramdir: = "D: \ Program Files "Run % sysprogramdir % \ Microsoft Visual Studio 9.0 \ common7 \ ide \ devenv.exe return; Start flashfxp # F: Run G: \ flashfxp \ flashfxp.exe; start everything to search for files! S: Run G: \ other software \ everything-search file \ Everything-1.2.0.323b.exe; Start QQ # Q: Run G: \ Program Files \ Tencent \ QQ \ bin \ qq.exe; common directory startup; common software for starting g disks # C: Run G: \ other software; opening music Directory: *: yy T: Run H: \ music \ return

Here, I will explain how to use the last script to open the music directory, just press "YY" on the keyboard and then press "tab" to open the directory (why is it written like this instead of using the win + keyboard button as above? It is because I can't find it.)

 

Ii. Volume Adjustment

I personally think this code is also quite useful. Although most laptops now have the volume adjustment function, this volume adjustment button may be unreasonably distributed, so it may be uncomfortable to press it.

Volume Adjustment; # notrayicon + # Up:; soundset + 3 soundset, + 3, wavegosub, vupdtreturn # wheeldown: # Down: soundset-3 soundset,-3, wavegosub, vupdtreturn # wheelup ::# up: soundset + 3 soundset, + 3, wavegosub, vupdtreturn + # Down:; soundset-3 soundset,-3, wavegosub, vupdtreturn # left:: soundset,-0, microphone, muteifwinexist, Volume {soundget, m_m, microphone, muteif m_m = onguicontrol, R, 0 elseguicontrol, R, 1 settimer, label, 2000 return} gosub, showreturn # mbutton ::# right: soundset,-0, Master, muteifwinexist, Volume {soundget, v_m, Master, muteif v_m = onguicontrol, pic1, * icon40 D: \ windows \ system32 \ mmsys. cplelseguicontrol, pic1, * icon1 D: \ windows \ system32 \ mmsys. cplsettimer, label, 2000 return} gosub, showreturn; this routine is isolated to avoid icon flashingvupdt: ifwinexist, Volume {average, minimum, WP, % wave_volume % soundget, master_volumeguicontrol ,, MP, % master_volume % settimer, label, 2000 return} gosub, showreturnshow: soundget, metrics, metrics, m_m, microphone, mutesoundget, v_m, Master, muteifwinnotexist, Volume {GUI, + toolwindow-caption + 0x400000 + alwaysontopgui, add, groupbox, X3 Y2 w40 h45 cblack, Gui, add, text, x48 Y12, wavegui, add, text, x48 y32, mastergui, add, progress, horizontal VMP x90 y28 W120 H18 c333cc, % master_volume % GUI, add, progress, horizontal VWP x90 y9 W120 H18 labels, % wave_volume % if v_m = ongui, add, PIC, X7 Y13 vpic1 icon40, D: \ windows \ system32 \ mmsys. cplelsegui, add, PIC, X7 Y13 vpic1 icon1, D: \ windows \ system32 \ mmsys. cplif m_m = onguicontrol, R, 0 cursor, R, 1gui, show, noactivate x720 y460 h48 w213, Volume} settimer, label, 2000 returnlabel: settimer, label, offgui, destroy

The above code is only tested in XP and tested in Vista and win7. If you think it is useful, use it.

 

Iii. Experiences

Now I will introduce my experience in writing shortcuts:

1. Avoid conflicts with system shortcut keys

You can see that there are already many default keyboard shortcuts in the system, and the scripts we write are best not in conflict with system shortcut keys, common system shortcut keys are combined by Ctrl + XX and ALT + XX, but win + XX is rare. Therefore, we should try to use win + XX for combination, that's why I want to use win + xx.

2. Try to place the shortcut key on the left hand

In normal use, the mouse is the right hand, and the left hand is placed on the keyboard (left-handed is the opposite ), therefore, we must do our best to prevent the right hand from leaving the mouse during the use process. We can solve the problem by one hand, because the efficiency is the highest (in my opinion, can be operated in multiple threads), so if we want to put the shortcut key on the left, we need to limit the R on the keyboard to draw a line down r, f, V, in this way, the left hand won't be overwhelmed (if the hand is too large, let it be another question)

 

I only introduced the simplest functions of autohotkey, and I only used them. On the Internet, many cool people wrote many gadgets using autohotkey, which are very good, in addition, autohotkey functions are more than just that. If you are interested, you can study them!

If you find it helpful, please give me a suggestion. Thank you!

PS: I plan to write some software or gadgets recommendation articles on a regular basis in my blog to share some articles that may not be related to programming, but are useful in daily computer operations, I think it is better.

 

: Autohotkey

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.