AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New user is lost!

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
saigepapa



Joined: 03 Aug 2007
Posts: 7

PostPosted: Fri Aug 03, 2007 1:58 pm    Post subject: New user is lost! Reply with quote

All I want to do is replace a program called RoboType from PC magazine because that program will not function in IE7 (which I use occasionally)
Anyway Robotype lets me type in a semicolon followed by an abreviation and returns a string. Thus:

";c " (no quotes) produces
Curiosity killed the cat. Satisfaction brought it back.

";he " (no quotes) produces
"Help" is not the same thing as "doing it for you."

That is all I want to do!!! I have over a hundred of abbreviations and many are multi-line.

";ms " produces
"Mozilla Support: Here are the links to the groups for Mozilla products.

news://news.mozilla.org/mozilla.support.firefox
news://news.mozilla.org/mozilla.support.thunderbird

There are others at the same location"



I have tried the quick start tutorial. It does not produce results it says it will.
It says I can put my .ahk files in a folder I choose. BUT how do I tell the program where to look. I tried a search on file location in these posts and found search was useless.
This program appears to be by and for geeks. I have been there and done that (since 1964) but am tired of the BS.

TIA

Lou
Back to top
View user's profile Send private message
tonne



Joined: 06 Jun 2006
Posts: 1159
Location: Denmark

PostPosted: Fri Aug 03, 2007 2:04 pm    Post subject: Reply with quote

Code:
:?*:;c ::Curiosity killed the cat.`nSatisfaction brought it back.


Edit: What you are looking for is called hotstring & auto-replace in the help file.
Add the mentioned line as in the tutorial to a fresh ahk-file and double-click to launch it.
_________________
there's a dog barking close within the range of my ear
sounds like he wants to escape the chain
he would probably bite me to death if he could
but the chain lets me spit in his face

- Kashmir
Back to top
View user's profile Send private message
Z Gecko
Guest





PostPosted: Fri Aug 03, 2007 2:36 pm    Post subject: Reply with quote

You could also use the code provided here http://www.autohotkey.com/forum/topic20922.html .

It does the same with the help of an .ini-file. You can compile the script without loosing the ability to change your acronyms.
Back to top
saigepapa



Joined: 03 Aug 2007
Posts: 7

PostPosted: Fri Aug 03, 2007 2:36 pm    Post subject: Reply with quote

Thanks but where to put the file?
And does that mean I need 100 files for a hundred different abreviations?
Back to top
View user's profile Send private message
Z Gecko
Guest





PostPosted: Fri Aug 03, 2007 2:39 pm    Post subject: Reply with quote

You can put the file wherever you want, you start the script by double-clicking it.
And No, you donīt need to make hundreds of files.
Back to top
saigepapa



Joined: 03 Aug 2007
Posts: 7

PostPosted: Fri Aug 03, 2007 2:40 pm    Post subject: Reply with quote

"double-click to launch it." Huh??

With Robotype whenever I type ";c " the substitution is automatic.
Back to top
View user's profile Send private message
Z Gecko
Guest





PostPosted: Fri Aug 03, 2007 2:43 pm    Post subject: Reply with quote

well, you have to start your robotype.
You have to start your script, too.

Please try it out:
create a text-file with the contents tonne provided
rename it to soething.ahk
double-click it, to start the script
and then type ";c" anywhere
Back to top
saigepapa



Joined: 03 Aug 2007
Posts: 7

PostPosted: Fri Aug 03, 2007 2:50 pm    Post subject: Reply with quote

Robotype starts when I boot and sits in my tray (right side).
Autohotkey also starts and sits there.
Can I make one long script with many abreviations and then will it pick the correct one? i.e. all of the samples in my original post sit in one file and Robotype finds the correct one.
Back to top
View user's profile Send private message
Z Gecko
Guest





PostPosted: Fri Aug 03, 2007 2:58 pm    Post subject: Reply with quote

Well, maybe your Autohotkey starts automaticaly, but not the ahk-scripts you made.
So you need to start the script, or you need incorporate the code in the script your Autohotkey is running by default.

Did you try out what i suggested?
Back to top
mwharri



Joined: 15 Mar 2007
Posts: 70

PostPosted: Fri Aug 03, 2007 2:59 pm    Post subject: Reply with quote

right click the tray icon for autohotkey and select 'Edit this Script'....when the code opens up, paste the code that tonne posted above....

Code:

:?*:;c ::Curiosity killed the cat.`nSatisfaction brought it back.


then reload the script.
Back to top
View user's profile Send private message
saigepapa



Joined: 03 Aug 2007
Posts: 7

PostPosted: Fri Aug 03, 2007 3:55 pm    Post subject: Reply with quote

BINGO!!!

" or you need incorporate the code in the script your Autohotkey is running by default."

That's the key to making this puppy behave like Robotype. It does search thru a list (at least a list of two items) and it does work in IE7.

THANK YOU!!!

I will post back later after I "play" some more.

Lou
Back to top
View user's profile Send private message
Z Gecko
Guest





PostPosted: Fri Aug 03, 2007 4:00 pm    Post subject: Reply with quote

OK, have fun!

And remember, you can launch anything at startup, by creating a link to it in the autostart-folder of your startmenu.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group