Jump to content

How can I replace text?


Maarte
 Share

Recommended Posts

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

Link to comment
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

Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...