 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
whynot
Joined: 06 Aug 2004 Posts: 10
|
Posted: Fri Aug 20, 2004 11:21 pm Post subject: My .ini file - Updates galore! |
|
|
A couple of weeks ago I posted an early version of my .ini file. Since then I've added a ton more features to it, made it a lot smarter, and added a (unix style) regex sequence which will allow you to quickly list all the commands which are tied to a keyboard shortcut (The RegEx is at the top, located in the comments). I thought it's at a point wherein it's worth sharing again.
It's probably worth noting that a lot of the autocompletes and shortcuts are tied to Web Development. A lot of the script's universally friendly (Like the "Do Screen Capture, and Open in Photoshop for editing"), but I figured I'd let you know why a lot of it is aligned around HTML, Perl and such. PHP will be added shortly if your'e interested.
I'll also be posting a UltraEdit wordfile as a seperate post, which has had the C++ portion of it replaced with a AutoHotKey-friendly portion.
For now, here's my updated .ini file (It's up to 1461 lines!). I wish the formatting would stay intact when I paste it into the forums... I've got centered titles, shaded backgrounds, and outlined headers when viewed in UltraEdit, but it all becomes left-aligned when posting. Sorry. I hope it still benefits someone out there.
| Code: | ; *******************************************************************************
; * Notes & Information *
; *-----------------------------------------------------------------------------*
; * 1. To see all items with shortcuts, use the following regex to locate them. *
; * For example, paste it into UltrEdit's Search dialogue box (AFTER enabling*
; * the Unix-style RegEx parsing in UltraEdit's configuration settings): *
; * ;\s*.*:\s*\(.*\s*\) *
; *******************************************************************************
; ===============================================================================
; Initialization / Global Variables
; -------------------------------------------------------------------------------
; *** No Global Variables currently defined ***
; ===============================================================================
; ===============================================================================
; Auto-Complete Additions
; -------------------------------------------------------------------------------
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close Double Quotes:
; --------------------------------------------------------------
$+'::
SetTitleMatchMode, 2
IfWinActive, cmd.exe
{
Send, +'
}
else IfWinActive, HomeSite
{
Send, +'
}
else
{
clipboard =
Send, ^c
if clipboard =
{
Send, +'+'{LEFT}
}
else
{
Send, +'^v+'
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close Parantheses:
; --------------------------------------------------------------
$+9::
SetTitleMatchMode, 2
IfWinActive, cmd.exe
{
Send, +9
}
else
{
clipboard =
Send, ^c
if clipboard =
{
Send, +9+0{LEFT}
}
else
{
Send, +9^v+0
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close Curly Braces:
; --------------------------------------------------------------
$+[::
SetTitleMatchMode, 2
IfWinActive, cmd.exe
{
Send, +[
}
else
{
clipboard =
Send, ^c
if clipboard =
{
Send, +[+]{LEFT}
}
else
{
Send, +[^v+]
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close Brackets:
; --------------------------------------------------------------
$[::
SetTitleMatchMode, 2
IfWinActive, cmd.exe
{
Send, [
}
else
{
clipboard =
Send, ^c
if clipboard =
{
Send, []{LEFT}
}
else
{
Send, [^v]
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <p></p>:
; --------------------------------------------------------------
:*?:<p>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <p></p>{LEFT 4}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <p>
}
else
{
Send, <p></p>{LEFT 4}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <title></title>:
; --------------------------------------------------------------
:*?:<title>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <title></title>{LEFT 8}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <title>
}
else
{
Send, <title></title>{LEFT 8}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <b></b>:
; --------------------------------------------------------------
:*?:<b>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <b></b>{LEFT 8}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <b>
}
else
{
Send, <b></b>{LEFT 4}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <i></i>:
; --------------------------------------------------------------
:*?:<i>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <i></i>{LEFT 8}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <i>
}
else
{
Send, <i></i>{LEFT 4}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <u></u>:
; --------------------------------------------------------------
:*?:<u>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <u></u>{left 8}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <u>
}
else
{
Send, <u></u>{LEFT 4}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <table></table>:
; --------------------------------------------------------------
:*?:<table>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <table></table>{LEFT 8}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <table>
}
else
{
Send, <table></table>{LEFT 8}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <tr></tr>:
; --------------------------------------------------------------
:*?:<tr>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <tr></tr>{LEFT 5}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <tr>
}
else
{
Send, <tr></tr>{LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <td></td>:
; --------------------------------------------------------------
:*?:<td>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <td></td>{LEFT 5}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <td>
}
else
{
Send, <td></td>{LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <div></div>:
; --------------------------------------------------------------
:*?:<div>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <div></div>{LEFT 6}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <div>
}
else
{
Send, <div></div>{LEFT 6}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <span></span>:
; --------------------------------------------------------------
:*?:<span>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <span></span>{LEFT 6}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <span>
}
else
{
Send, <span></span>{LEFT 6}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <html></html>:
; --------------------------------------------------------------
:*?:<html>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <html></html>{LEFT 7}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <html>
}
else
{
Send, <html></html>{LEFT 7}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <head></head>:
; --------------------------------------------------------------
:*?:<head>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <head></head>{LEFT 7}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <head>
}
else
{
Send, <head></head>{LEFT 7}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Auto-Close <body></body>:
; --------------------------------------------------------------
:*?:<body>::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, <body></body>{LEFT 7}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <body>
}
else
{
Send, <body></body>{LEFT 7}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; =================================================================================
; =================================================================================
; HTML-Related Additions
; ---------------------------------------------------------------------------------
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Single <br />: (CTRL-ENTER)
; --------------------------------------------------------------
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^{ENTER}
}
else IfWinActive, - Message
{
Send, ^{ENTER}
}
else
{
Send, <br />
}
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Double <br /><br />: (SHIFT-CTRL-ENTER)
; --------------------------------------------------------------
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^{ENTER}
}
else IfWinActive, - Message
{
Send, ^{ENTER}
}
else
{
Send, <br /><br />
}
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; HTML Comment: (CTRL-ALT-SPACE)
; --------------------------------------------------------------
$^!SPACE::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^!{SPACE}
}
else IfWinActive, - Message
{
Send, ^!{SPACE}
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, ^!{SPACE}
}
else
{
clipboard =
Send, ^c<{!}-- ^v -->{LEFT 4}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Ordered List: (CTRL-SHIFT-O)
; --------------------------------------------------------------
$^+O::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+o
}
else IfWinActive, - Message
{
Send, ^+o
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <ol>
}
else
{
Send, <ol></ol>{LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; UN-Ordered List: (CTRL-SHIFT-U)
; --------------------------------------------------------------
$^+U::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+u
}
else IfWinActive, - Message
{
Send, ^+u
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <ul>
}
else
{
Send, <ul></ul>{LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; List Item : (CTRL-L)
; --------------------------------------------------------------
$^L::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^l
}
else IfWinActive, - Message
{
Send, ^l
}
else
{
IfWinActive, Macromedia HomeSite
{
Send, <li>
}
else
{
clipboard =
Send, ^c<li>^v</li>
; If clipboard's empty, move cursor to insertion position
if clipboard =
Send, {LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; HTML Make Bold (Strong): (CTRL-B)
; --------------------------------------------------------------
$^b::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^b
}
else IfWinActive, - Message
{
Send, ^b
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^b
}
else
{
clipboard =
Send, ^c<strong>^v</strong>
; If clipboard's empty, move cursor to insertion position
if clipboard =
Send, {LEFT 9}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; HTML Underline: (CTRL-U)
; --------------------------------------------------------------
$^U::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^u
}
else IfWinActive, - Message
{
Send, ^u
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^u
}
else
{
clipboard =
Send, ^c<u>^v</u>
; If clipboard's empty, move cursor to insertion position
if clipboard =
Send, {LEFT 4}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; HTML Italicize/Emphasize: (CTRL-i)
; --------------------------------------------------------------
$^i::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^i
}
else IfWinActive, - Message
{
Send, ^i
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^i
}
else
{
clipboard =
Send, ^c<i>^v</i>
if clipboard =
Send, {LEFT 4}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Insert external JavaScript: (CTRL-ALT-J)
; --------------------------------------------------------------
$^!J::
SetTitleMatchMode, 2
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^!j
}
else
{
Send, <script language="JavaScript" src="xxx.js" type="text/javascript"></script>{LEFT 9}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Insert In-Line Javascript: (CTRL-SHIFT-J)
; --------------------------------------------------------------
$^+J::
SetTitleMatchMode, 2
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+j
}
else
{
Send, <script language="JavaScript" type="text/javascript">{ENTER}<{!}--{ENTER 2}-->{ENTER}</script>{UP 2}{TAB}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Insert Table: (CTRL-ALT-T)
; --------------------------------------------------------------
$^!t::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^!t
}
else IfWinActive, - Message
{
Send, ^!t
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^!t
}
else
{
Send, <table></table>{LEFT 8}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Insert Table Column: (CTRL-ALT-C)
; --------------------------------------------------------------
$^!c::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^!c
}
else IfWinActive, - Message
{
Send, ^!c
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^!c
}
else
{
Send, <td></td>{LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Insert Table Row: (CTRL-ALT-R)
; --------------------------------------------------------------
$^!r::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^!r
}
else IfWinActive, - Message
{
Send, ^!r
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^!r
}
else
{
Send, <tr></tr>{LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Center-Align Content: (CTRL-SHIFT-C)
; --------------------------------------------------------------
$^+c::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+c
}
else IfWinActive, - Message
{
Send, ^+c
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+c
}
else
{
clipboard =
Send, ^c<div align="center">^v</div>
if clipboard =
Send, {LEFT 6}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Left-Align Content: (CTRL-SHIFT-L)
; --------------------------------------------------------------
$^+l::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+l
}
else IfWinActive, - Message
{
Send, ^+l
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+l
}
else
{
clipboard =
Send, ^c<div align="left">^v</div>
if clipboard =
Send, {LEFT 6}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Right-Align Content: (CTRL-SHIFT-R)
; --------------------------------------------------------------
$^+r::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+r
}
else IfWinActive, - Message
{
Send, ^+r
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+r
}
else
{
clipboard =
Send, ^c<div align="right">^v</div>
if clipboard =
Send, {LEFT 6}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Font Style H1: (CTRL-SHIFT-1)
; --------------------------------------------------------------
$^+1::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+1
}
else IfWinActive, - Message
{
Send, ^+1
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+1
}
else
{
clipboard =
Send, ^c<h1>^v</h1>
if clipboard =
Send, {LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Font Style H2: (CTRL-SHIFT-2)
; --------------------------------------------------------------
$^+2::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+2
}
else IfWinActive, - Message
{
Send, ^+2
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+2
}
else
{
clipboard =
Send, ^c<h2>^v</h2>
if clipboard =
Send, {LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Font Style H3: (CTRL-SHIFT-3)
; --------------------------------------------------------------
$^+3::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+3
}
else IfWinActive, - Message
{
Send, ^+3
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+3
}
else
{
clipboard =
Send, ^c<h3>^v</h3>
if clipboard =
Send, {LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Font Style H4: (CTRL-SHIFT-4)
; --------------------------------------------------------------
$^+4::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, !l
}
else IfWinActive, - Message
{
Send, !1
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+4
}
else
{
clipboard =
Send, ^c<h4>^v</h4>
if clipboard =
Send, {LEFT 5}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Font Style Normal: (CTRL-SHIFT-N)
; --------------------------------------------------------------
$^+n::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+n
}
else IfWinActive, - Message
{
Send, ^+n
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^+n
}
else
{
; Don't do anything globally for "Normal Font Style"
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; =================================================================================
; =================================================================================
; Javascript Additions
; ---------------------------------------------------------------------------------
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Line Comment: (CTRL-SPACE)
; --------------------------------------------------------------
$^SPACE::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^{SPACE}
}
else IfWinActive, - Message
{
Send, ^{SPACE}
}
else
{
clipboard =
Send, ^c//{SPACE}^v
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Block Comment: (CTRL-SHIFT-SPACE)
; --------------------------------------------------------------
^+SPACE::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+{SPACE}
}
else IfWinActive, - Message
{
Send, ^+{SPACE}
}
else
{
clipboard =
Send, ^c/* ^v */
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; =================================================================================
; =================================================================================
; My Perl Addons
; ---------------------------------------------------------------------------------
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Perl Comment: (WIN-SPACE)
; --------------------------------------------------------------
$#SPACE::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, #{SPACE}
}
else IfWinActive, - Message
{
Send, #{SPACE}
}
else
{
clipboard =
Send, ^c
SendRaw, #
Send, {SPACE}^v
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Perl Comment Dbl Line Comment:(WIN-\)
; --------------------------------------------------------------
$#\::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, #\
}
else IfWinActive, - Message
{
Send, #\
}
else
{
SendRaw, # ==============================================================================
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Perl Comment sNG. Line Comment:(ALT-WIN-\)
; --------------------------------------------------------------
$!#\::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, #\
}
else IfWinActive, - Message
{
Send, #\
}
else
{
SendRaw, # ------------------------------------------------------------------------------
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Perl Comment Tilde Line Comment:(CTRL-ALT-\)
; --------------------------------------------------------------
$+#\::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, #\
}
else IfWinActive, - Message
{
Send, #\
}
else
{
SendRaw, # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; =================================================================================
; =================================================================================
; AutoHotKey Addons
; ---------------------------------------------------------------------------------
; *** No AutoHotKey specific addons are currently defined ***
; =================================================================================
; =================================================================================
; My Email/URL Addons:
; ---------------------------------------------------------------------------------
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Home Email 1: (WIN-F2)
; --------------------------------------------------------------
#F2:: Send, <EMAIL ADDR REMOVED FOR PRIVACY>
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Home Email 2: (SHIFT-WIN-F2)
; --------------------------------------------------------------
+#F2:: Send, <EMAIL ADDR REMOVED FOR PRIVACY>
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Home Email 3: (SHIFT-CTRL-WIN-F2)
; --------------------------------------------------------------
^+#F2:: Send, <EMAIL ADDR REMOVED FOR PRIVACY>
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Home Email 4: (CTRL-WIN-F2)
; --------------------------------------------------------------
^#F2:: Send, <EMAIL ADDR REMOVED FOR PRIVACY>
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Work Email: (WIN-F3)
; --------------------------------------------------------------
#F3:: Send, <EMAIL ADDR REMOVED FOR PRIVACY>
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; =================================================================================
; =================================================================================
; Various Program Specific Additions
; ---------------------------------------------------------------------------------
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; AutoHotKeys: Setup New Script (CTRL-WIN-N)
; --------------------------------------------------------------
^#N:: Send,; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{ENTER}; DescriptionGoesHere{ENTER}; --------------------------------------------------------------{ENTER 2}; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{UP}{TAB}
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Dos Window: Paste Clipboard (SHIFT-INSERT)
; --------------------------------------------------------------
+Insert::
SetTitleMatchMode, 2
IfWinActive, C:\WINNT\System32\cmd.exe
{
MouseClick, RIGHT
}
else
{
; Don't do anything globally for this
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Flip BACK between Open documents: (CTRL-ALT-L)
; --------------------------------------------------------------
$^!LEFT::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^+{F6}
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^!{Left}
}
else
{
IfWinActive, JCreator
{
Send, !w
Send, !v
}
else
{
IfWinActive, UltraEdit-32
{
Send, ^{F6}
}
else
{
; Do nothing globally for this
}
}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Flip FWD between Open documents: (CTRL-ALT-R)
; --------------------------------------------------------------
$^!Right::
SetTitleMatchMode, 2
IfWinActive, Microsoft
{
Send, ^{F6}
}
else
{
IfWinActive, Macromedia HomeSite
{
; If here, use Homesites internal functions by sending hotkey combo:
Send, ^!{Right}
}
else
{
IfWinActive, JCreator
{
Send, !w
Send, !x
}
else
{
IfWinActive, UltraEdit-32
{
Send, ^+{F6}
}
else
{
; Do nothing globally for this
}
}
}
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Screenshot & open in Photoshop: (CTRL-SHIFT-PRNTSCRN)
; --------------------------------------------------------------
^+PrintScreen::
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; 1st, determine which version of PS we're using on this machine, and then set
; a variable to the path of that version, for use in launching the program.
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RegRead, ps7Path, HKEY_LOCAL_MACHINE, SOFTWARE\ADOBE\Photoshop\7.0, ApplicationPath
RegRead, ps8Path, HKEY_LOCAL_MACHINE, SOFTWARE\Adobe\Photoshop\8.0, ApplicationPath
IfExist, %ps7Path%
{
PSP = %ps7Path%
}
else
{
IfExist, %ps8Path%
{
PSP = %ps8Path%
}
else
{
PSP = Error: Couldn't find Photoshop's Path in registry!
}
}
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Now, copy the screen, determine if PS is running, and launch if it isn't.
; Then paste the copied screen into PS.
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Send, !{PrintScreen}
SetTitleMatchMode, 2
IfWinExist, Adobe Photoshop
{
WinActivate, Adobe Photoshop
Send, ^n
Send, {Enter}
Send, ^v
}
else
{
Run, %PSP%\Photoshop.exe
Sleep, 9000 ; 9 seconds
Send, ^n
Send, {Enter}
Send, ^v
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Create New Email using Outlook: {WIN-N}
; --------------------------------------------------------------
#n::
SetTitleMatchMode, 2
WinGetActiveTitle, CurWin
WinActivate, Microsoft Outlook
Send, ^n
WinActivate, %CurWin%
WinActivate, Untitled - Message
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Create New Email using Outlook & Paste Clipboard:{SHIFT-WIN-N}
; --------------------------------------------------------------
+#n::
SetTitleMatchMode, 2
WinGetActiveTitle, CurWin
WinActivate, Microsoft Outlook
Send, ^n
WinActivate, %CurWin%
WinActivate, Untitled - Message
Send, {TAB 4}^v+{TAB 4}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Create new folder: (CTRL-ALT-WIN-N)
; --------------------------------------------------------------
^!+n::
IfWinActive, , FolderView
{
SetKeyDelay, 50
; If here, we're in explorer, thus create the new folder:
Send, !fwf
SetKeyDelay, 10
}
else
{
Send, #n
}
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Make Current Window Transparent: (WIN-SCROLLLOCK)
; --------------------------------------------------------------
#ScrollLock::
SetTitleMatchMode, 2
WinGetActiveTitle, CurWin
WinSet, transparent, 140, %CurWin%
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Make Current Window Opaque: (ALT-SCROLLLOCK)
; --------------------------------------------------------------
!ScrollLock::
SetTitleMatchMode, 2
WinGetActiveTitle, CurWin
WinSet, transparent, 255, %CurWin%
return
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; =================================================================================
; =================================================================================
; Program Launchers
; ---------------------------------------------------------------------------------
; *** No Program Launchers are currently defined ***
; ================================================================================= |
|
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Aug 20, 2004 11:37 pm Post subject: |
|
|
| If you put a script into a code section (using the "code" button when posting a reply), the indentation is preserved. I did this for your post above, which should make copying & pasting it nicer for those who wish to. |
|
| Back to top |
|
 |
whynot
Joined: 06 Aug 2004 Posts: 10
|
Posted: Sat Aug 21, 2004 12:31 am Post subject: |
|
|
| Chris wrote: | | If you put a script into a code section (using the "code" button when posting a reply), the indentation is preserved. I did this for your post above, which should make copying & pasting it nicer for those who wish to. |
As always, thank you Chris! I'll keep this in mind for future posts.  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|