老码农分享 http://blog.sciencenet.cn/u/seawan //敲键读书打酱油;

博文

好工具:创建自己的热键响应

已有 2441 次阅读 2012-3-11 22:21 |个人分类:好工具|系统分类:科研笔记| 工具, blank, color, class, target

http://www.autohotkey.com/

AutoHotkey is a free, open-source utility for Windows. With it, you can:

  • Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or use the macro recorder.
  • Create hotkeys for keyboard, joystick, and mouse. Virtually any key, button, or combination can become a hotkey.
  • Expand abbreviations as you type them. For example, typing "btw" can automatically produce "by the way".
  • Create custom data-entry forms, user interfaces, and menu bars. See GUI for details.
  • Remap keys and buttons on your keyboard, joystick, and mouse.
  • Respond to signals from hand-held remote controls via the WinLIRC client script.
  • Run existing AutoIt v2 scripts and enhance them with new capabilities.
  • Convert any script into an EXE file that can be run on computers that don't have AutoHotkey installed.

Getting started might be easier than you think. Check out the quick-start tutorial.


下面的脚本可以在ctrl+alt+n时,拷贝当前选中文本,然后启动记事本。。方法是先发ctrl-C,实现拷贝文本到剪贴板,然后启动自己的程序。(里面的粘贴部分不起作用,以后再研究。。。)

^!n:: 
send, ^c 
IfWinExist Untitled - Notepad 
{
WinActivate Send, ^v 
else 
{
Run Notepad 
WinActivate 
Send, ^v 
return


https://blog.sciencenet.cn/blog-461456-546686.html

上一篇:一个好工具:创建自己的热键响应
下一篇:海带可能是有毒的
收藏 IP: 113.59.89.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-12-23 19:02

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部