If replacement-hotkey was preceded by a j, execute the script

I'm using an AutoHotkey replacement-script to auto-correct my mistakes. However, when I'm gaming, I have to hit 'j' before I can type. I'd it to also work when I type j-hotkey.

So when I type: i'd » I'd, but also when I type ji'd » I'd.

Is there a way I can do this without having to make duplicates for everything?

Answers


Do you need to replace the 'j' as well? If so, se Hotstrings:

Hotstrings("j?i'd","I'd")

Otherwise, just use the ? option, which will allow your hotstring to trigger even if it's inside another word:

:*?:i'd::I'd

On the AutoHotkey-forum, I got this answer, which works great:

:* B0 Z:j::
    return

if you want, you can even use it like this to prevent problems when you're not playing:

#IfWinActive Battlefield 3™ ;or whatever game you're playing
    :* B0 Z:j::
    return
#IfWinActive ;end of condition

Need Your Help

PyQt4 TextEdit.clear causes crash

python crash pyqt4 clear qtextedit

I have a deque type list (a queue) which I'd like to show and update in QTextEdit.

Logarithmic series of numbers from 1 to MAX

php math

I'd like to calculate a logarithmic range of numbers from 1 to MAX, with the approximate total count of numbers being TOTAL.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.