Complex sentence: Window messages are designed to communicate user action to processes; however they can be used to run arbitrary code in the receiving process' context.
Split into simpler sentences: Window messages are designed to communicate user action to processes. However, they can be used to run arbitrary code in the receiving process' context.