Anonymous wrote:
You need to modify hotstrings.ahk first.
Read
http://www.autohotkey.com/docs/commands/Hotkey.htm and look at the last example on the page (earlier on the page are similar examples) For both Hotkey commands in hotstrings.ahk you need to insert a line above and below using the third parameter.
all I have to do is to insert these lines:
Hotkey, %m%%c%, __hs
Hotkey, %m%%A_LoopField%, __hs
in the begining and the end of the Hotstring.ahk, but where exactly?
however, with this method, I will have to use multiple Hostring.ahk files, to use multiple hotstrings per window, right?
I used Cerberus' method and I wrote this:
Code:
hotstrings("(\d+)(\d)\s","result1")
Return
result1:
Ifwinactive, WinTitle ahk_class WinClass
SendInput, % Round($1*10**$2/1.1)
Else
Return
it works well, but the problem is that in other that the wanted window, I dont want the script to replace the typed text with the typed text, I just want it not to work at all