Using AutoHotKey to open a specific OneNote page
来源:互联网 发布:幻城h5源码 编辑:程序博客网 时间:2024/04/19 22:45
Using AutoHotKey to open a specific OneNote page
One of our internal OneNote users wanted a desktop shortcut to automatically open a specific page in OneNote. He keeps all his active "To Do" items on that page and wanted to quickly open that particular page. I pointed him at mybatch file/Windows Task Service to do this and then Konstantine replied with an AutoHotKey script to perform a similar function. Here's what he had to say:
----
I’m a keyboard shortcut junkie so one more thing I did was to assign it to a keyboard shortcut. Some MS Keyboards have a bank of numbered buttons (above the Function Keys) that can be programmed to execute applications. Button #1 opens my tasks.
If you don’t have that kind of keyboard, you can also assign keyboard shortcuts to links on the desktop or create something inAutoHotkey.
Here is what I did with autohotkey
This script will:
- Launch onenote on Win+n, Win+n
- Launch todo Win+n, Win+t
- Launch my projects on Win+n, Win+p
Very convenient indeed…
*#n::
If winNPrefix = 1
{
IfWinNotExist, ahk_class Framework::CFrame
{
Run, onenote
}
else
{
ToggleRestoreMinimize("ahk_class Framework::CFrame")
}
winNPrefix = 0
}
Else
{
winNPrefix = 1
}
return
; -------------------------------------------------------------
; Onenote command handler for Win+n, Win+t
; -------------------------------------------------------------
*#t::
If winNPrefix = 1
{
Run, onenote /hyperlink onenote:///https://******.docs.live.net/************/myOnenotes/Todo.one#To-Do§ion-id={4243287F-E341-42B6-439C-72ACB33C10E0}&page-id={D4A34CFB-B69D-4B3F-B6B6-DE3DC6070E5C}&end
winNPrefix = 0
}
return
; ----------------------------------------------------------
; Restores or minimizes a window
; ----------------------------------------------------------
ToggleRestoreMinimize(in_winTitle)
{
WinGet mnmx, MinMax, %in_winTitle%
if (mnmx = -1)
{
; window is minimized restore it
PostMessage, 0x112, 0xF120,,, %in_winTitle%
WinActivate %in_winTitle%
}
else if (mnmx = 0 || mnmx = 1)
{
IfWinNotActive %in_winTitle%
{
WinActivate %in_winTitle%
}
Else
{
PostMessage, 0x112, 0xF020,,, %in_winTitle%
}
}
}
Pretty slick. I'm a big fan of AHK since it makes so many repetitive that much easier. Oh, and to get the URL Konstantine uses, see my original article.
Thanks for letting me post this, Konstantine!
Questions, comments, concerns and criticisms always welcome,
John
- 15 Jul 2011 11:31 PM#
Um... You've been using Windows for how long? Bill Gates should smack you all up-side your heads.
Just right-click on the page tab, select "Copy link to page", and paste that into a new shortcut. Done.
I use OneNote for keeping track of just about everything now. I have lots of shortcuts on my desktop to open OneNote to specific locations. All of them work like a charm.
- 8 Dec 2011 10:26 PM#
@Grant ...
I'd like to make the obvious readable;
AHK is all about giving additional and advanced keyboard support to the advanced user.
- Using AutoHotKey to open a specific OneNote page
- Copy and Paste to OneNote (AutoHotKey script)
- Convert HTML Page To a PDF Using Open Source Tool [ Linux / OS X / Windows ]
- Testing the AutoHotKey script for sending data to OneNote
- OpenVMS - How to Find which Processes Are Using a Specific Pagefile
- Openvms-C-Sourcecode- How to Find which Processes are using a specific pagefile or swapfile
- 【软件自动化测试 - VBScript 7】= Using Locate to determine if specific text exists within a string
- SilverLight_How to: Add Silverlight to a Web Page by Using HTML
- Pop a Message to specific SAP users
- Unit 'xxxxxx' is specific to a platform
- Move vim cursor to a specific column
- Oracle APEX Open a new window/tab page and navigate to a URL
- Page versions in OneNote
- How to programmatically assign a SkinID to a control while using a master page in ASP.net 2.0
- How to: Create a Custom Action Specific to a List
- Using libxml2 to get value of specific key
- Using YUM to install specific MySQL/Percona Server versions
- How to prevent crash when selecting specific contact using AdressBookUI
- photoshop图像滤镜——油画算法(含matlab与C代码)
- CPU策略学习:interactive策略的优点和缺点
- 面试题(二叉树相关) - 人是会思考的一棵苇草 - 博客频道 - CSDN.NET
- Android学习笔记2
- office xls 文件已损坏 无法打开 word在试图打开文件时遇到错误
- Using AutoHotKey to open a specific OneNote page
- 面试的时候遇到的问题:二叉树
- Logiscope 使用说明书
- 面试题精解之一: 二叉树
- 反转链表
- QT实现打开文件目录并选中文件
- QT中Socket编程
- POJ 1001
- awk将字符串转为数字的方法