Alternatives to IF/Then/Else if?

My software has a particular popup menu that shows in many dialogue boxes and windows throughout. I would like one hotkey that would check a long list of conditions the majority of which are ‘If Front Window Title contains’ then click unique coordinate. Currently I have a stack of nested If Then Else which is rather messy. Is there a better way?

Yes. Use Switch or Case action (KM Wiki) based on FrontWindowName token (KM Wiki).

Let us know if you have any further questions about this.

1 Like