You don't need to set a variable. the Token {ACTIVEWINDOWTITLE} is enough. I use mine to change profiles, but you can have it do anything you like.
Hope this helps!
Begin Text Compare : [{ACTIVEWINDOWTITLE}] Starts With 'Developer'
Change to profile, 'Windows Mode with CSS editing'
Else If Text Compare : [{ACTIVEWINDOWTITLE}] Contains 'Total Commander'
Change to profile, 'Windows Mode with CSS editing'
Else If Text Compare : [{EXP:'{TXT:ACTIVEWINDOWTITLE}' LIKE '*Opera' And NOT '{TXT:ACTIVEWINDOWTITLE}' LIKE '*Edit Style*'}] Equals '1'
Change to profile, 'Windows Mode with CSS editing'
Else If Text Compare : [{EXP:'{TXT:ACTIVEWINDOWTITLE}' LIKE '*Torch' And NOT '{TXT:ACTIVEWINDOWTITLE}' LIKE '*Edit Style*'}] Equals '1'
Change to profile, 'Busy'
Else If Text Compare : [{EXP:'{ACTIVEWINDOWTITLE}' LIKE '*Torch' AND '{ACTIVEWINDOWTITLE}' LIKE '*Edit*'}] Equals '1'
Else If Text Compare : [{ACTIVEWINDOWTITLE}] Contains 'Virtual Pool'
Change to profile, 'Virtual Pool'
End Condition