Thanks for your hint skwire...
I'm trying to remap "è" and "+" keys (on italian keyboard) to "[" and "]" to control brush size under photoshop.
I wrote down this script:
#ifWinActive, ahk_class Photoshop
{
è::sendinput {raw}[
+::sendinput {raw}]
}
if I try, say, with notepad (changing window class name) it works well, but photoshop seems to receive the equivalent of ALT+[ and ALT+].
I also tried send {[}, send [, sendinput {[} and so on... but always the same result.
Sure my mistake, but cannot guess it...