HashTag Macro KM 7.0

Is it possible to make macro aware where am I (in which application) and act accordingly?

Thanks
Andrej