DonationCoder.com Software > Finished Programs
DONE: abbreviations importer
urlwolf:
yes, yes, I know that. I'm a long-time ahk user.
It's just that the trigger key doesn't trigger anything.
Here is an example of the code that gets generated:
abbreviations file
--- ---404=I don't know
A3=Anytime, anywhere, anyplace
AAP=Always a pleasure
.ini file:
--- ---[Settings]
FileToRead=abbreviations.txt
FileToWrite=hotstringsScript.ahk
Trigger=
ToolTipTime=1000
TriggerTimeout=3000
Repeated=1
shortcuts file:
--- ---SetKeyDelay ,-1
return
:*C:404::
Tooltip,I don't know
send,I don't know
Sleep,1000
Tooltip
return
:*C:404::
Tooltip,I don't know
send,I don't know
Sleep,1000
Tooltip
return
:*C:404::
Tooltip,I DON'T KNOW
send,I DON'T KNOW
Sleep,1000
Tooltip
return
:*C:A3::
Tooltip,Anytime`, anywhere`, anyplace
send,Anytime`, anywhere`, anyplace
Sleep,1000
Tooltip
return
:*C:A3::
Tooltip,Anytime`, anywhere`, anyplace
send,Anytime`, anywhere`, anyplace
Sleep,1000
Tooltip
return
:*C:A3::
Tooltip,ANYTIME`, ANYWHERE`, ANYPLACE
send,ANYTIME`, ANYWHERE`, ANYPLACE
Sleep,1000
Tooltip
return
:*C:AAP::
Tooltip,Always a pleasure
send,Always a pleasure
Sleep,1000
Tooltip
return
:*C:AAP::
Tooltip,Always a pleasure
send,Always a pleasure
Sleep,1000
Tooltip
return
:*C:AAP::
Tooltip,ALWAYS A PLEASURE
send,ALWAYS A PLEASURE
Sleep,1000
Tooltip
return
By, th e way (!) it works!!!
argh! I know! it's the capitalization! I had the shortcuts in all capitals!!
Disregard my post! :D
jgpaiva:
Congrats, urlwolf, you've found a bug!
When you submit a file in all caps, the script should create 3 hotstrings for each: all caps, first letter caps, and nothing in caps. Right now, with a file like that, it creates a script with 3 similar hotstrings, all of them in caps. Thanks! :Thmbsup:
[edit] Just added a sticky note with it. I'll fix it asap. [/edit]
urlwolf:
If trigger=Space, I get the popup after I type space, e.g.: _foo _. but it never autocompletes.
You actually have to enter a space, not the Space keyword. (hmm) to get it to work. That was confusing me.
Nice work!
A few ideas/feature requests if I may. As far as I know <- using the nice autocompletion here :D, you have to edit the shorcuts file to add a new one. There is a nice script that lets you select a block, hit a shortcut, and have the selection added to the file and the script reloaded. Here:
http://www.autohotkey.com/docs/Hotstrings.htm
(Hotstring helper)
It could be handy to add that to the end of the hotkeyScript.
Another idea would be to have a key to undo the expanded expresion quickly.
What do you think?
jgpaiva:
If trigger=Space, I get the popup after I type space, e.g.: _foo _. but it never autocompletes.
You actually have to enter a space, not the Space keyword. (hmm) to get it to work. That was confusing me.
-urlwolf (May 01, 2006, 10:49 AM)
--- End quote ---
Sorry, that's confusing to me too :tellme:
I didn't quite get what you mean.
A few ideas/feature requests if I may. As far as I know <- using the nice autocompletion here :D, you have to edit the shorcuts file to add a new one. There is a nice script that lets you select a block, hit a shortcut, and have the selection added to the file and the script reloaded. Here:
http://www.autohotkey.com/docs/Hotstrings.htm
(Hotstring helper)
It could be handy to add that to the end of the hotkeyScript.
-urlwolf (May 01, 2006, 10:49 AM)
--- End quote ---
Hum.. True, that's a very needed feature, one of the most important. I'll add it to the sticky ;)
(This will make the script quite powerfull. Good idea ;) )
Another idea would be to have a key to undo the expanded expresion quickly.
-urlwolf (May 01, 2006, 10:49 AM)
--- End quote ---
Yes, also important (specially if you don't use a trigger ;) ). I'll add it to!
(bear in mind that i'm adding to te todo list, unfortunatelly i still have a few stuff to do before.)
Harrie:
That feature would be completely awesome!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version