Sign in to follow this  
Followers 0
Maarte

How can I replace text?

18 posts in this topic

Hi all,

First, I'm new here. I'm looking for a program where I can replace a word/sentence. So if I type 'Maarten' there comes: 'Maarten is looking for an answer' for example. Here before I used AutoHotKey, but this program don't work with Windows RT.

I will use it as a simple dictionary. So it would be nice that I can do something like this:

Hello = hallo

How are you = hoe gaat het

and so on.

It would be nice too if it can be two sides. So if I type: 'hoe gaat it' there comes 'how are you' and if I type 'hello' there comes 'hallo'.

It this possible with AutoIT? Oh and if I run the program, I'm not a administrator all the time.

Thank you,

Maarten

Share this post


Link to post
Share on other sites



Thank you for your reply JohnOne. I don't know so much about computers. Could you explain me how to do that? Or a screenshot how it had to be in the program.

 

Share this post


Link to post
Share on other sites

There it would be:

::Hello::hallo
::hallo::hello
::how are you::hoe gaat het
::hoe gaat het::how are you

(In AutoHotKey you cannot use two sides)

 

Share this post


Link to post
Share on other sites

That's the working script :). I know, this doesn't look like a script. But this is how I make this:

1. Right click --> New --> AutoHotKey script (On the picture, on the top)

2. Insert the text as show on the picture too.

3. Save

4. Double click to run the script.

That it.

Knipsel.PNG

Share this post


Link to post
Share on other sites

Then there comes a icon on the bottom and it works. I

But If I use it on a Surface with Windows RT it says: This app can't run on your PC

If there is a solution for this problem. It would be fine too. But what I read on the internet, there isn't.

Share this post


Link to post
Share on other sites

Then there comes a icon on the bottom and it works. I

But If I use it on a Surface with Windows RT it says: This app can't run on your PC

If there is a solution for this problem. It would be fine too. But what I read on the internet, there isn't.

Can you just please explain exactly what "it works" means.

What does it do besides show an icon?


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

It is like a live string replacement if I remember correctly.

I used to use it when I worked helpdesk and had to write a bunch of canned replies.  Kind of cool, I cant think of an easy way to do this in AutoIT but its definitely possible. 

 

Edit: Found it if anybody is interested, its called "hotstrings"

https://autohotkey.com/docs/Hotstrings.htm

 

And while this is old it may still work:

 

.. and yes just tested it works for me.

#Include <Hotstring.au3>

HotStringSet("btw{space}", btw)

Func btw()
    Send("{Backspace 4}")
    Send("by the way{space}")
EndFunc

While 1
    Sleep(10)
WEnd

 

Edited by ViciousXUSMC

Share this post


Link to post
Share on other sites

Did you try the solution I posted above?

It is the AutoIT way to do the Hotstrings from AHK

Running in Win8RT is another issue other than the "how to"

Share this post


Link to post
Share on other sites
On 14-1-2016 at 1:10 PM, ViciousXUSMC said:

Did you try the solution I posted above?

It is the AutoIT way to do the Hotstrings from AHK

Running in Win8RT is another issue other than the "how to"

I tried it, but I got an error. I know it's stupid, but I don't know how to solve it :(. I copied exactly your message.

Knipsel 2.PNG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0