Is it possible to change the numpad , to . depending on application?

I have a keyboard with numpad which has a , as decimal due to my language preferences, but some applications read . as decimal indicator instead. I was wondering if there's a way to automate which value that key returns depending on application active.

Thanks!

EDIT: ok solved it myself. Numpad is detected as Pad , so just send a . press and configure per app.