AutoHotkey Community

It is currently May 27th, 2012, 3:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: August 18th, 2010, 2:28 am 
Offline

Joined: August 15th, 2010, 12:17 am
Posts: 7
I have an AHK script remapping my keyboard to Dvorak, and I wrote this to do something like hotstrings:
Code:
Ins::
    cliptemp:=clipboard     ; Save orginal clipboard contents
    Send, ^+{Left}^{ins}    ; Highlight the word and copy it to the clipboard
    if IsLabel(clipboard)   ; If the word has an expansion, go there
        {
        Send, {del}
        Gosub, %clipboard%
        }
    clipboard:=cliptemp     ; Restore orginal clipboard contents
    return
btw:                        ; Example
    Send, by the way
    return


It's set up to use the Insert key, but you could probably change it so that it will be triggered by the space key and etc. The general idea is to add more labels like the "btw" example. It's kind of clunky, and I later decided to type the QWERTY (underlying letter) equivalent of my hotstrings, but there it is.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Leef_me and 33 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group