Help replacing text.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
talitapequeno
Posts: 1
Joined: 26 Apr 2022, 16:41

Help replacing text.

26 Apr 2022, 17:31

Hi, everyone. :)

I'm a newbie in autohotkeys, for start. I'm trying to help with some basic codes at my work. But there's one task that would be really helpful if we could use the autohotkeys, but I don't know how to begin.

I have two fields in my system. Field A, where some people put the State/Province where they live here in Brazil, and Field B, where we put the case tag from the State/Province.

So if Field A = Rio de Janeiro, then Field B = RJ.
Or if Field A = Sao Paulo, then Field B = SP.

And we change manually around 800 case tags per day. I want to run some code to recognize the State/Province from Field A and then replace with the initials in Field B.

Someone can help me, please? :(
User avatar
SirSocks
Posts: 360
Joined: 26 Oct 2018, 08:14

Re: Help replacing text.

26 Apr 2022, 21:47

It sounds like the StrReplace() function may be helpful to you....
https://www.autohotkey.com/docs/commands/StrReplace.htm

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: GroggyOtter, MSN [Bot] and 97 guests