Autohotkey - convert clipboard formatted text to plain text

Viewed 804

How to convert clipboard formatted text to plain text with Autohotkey on just a few programs only? Let say on google chrome?

OnClipboardChange:
if (A_EventInfo = "1") {
  Clipboard=%Clipboard%
}
return

This works perfect, but how to limit it to chrome only? If I wrap with #IfWinActive don't do any limitation, just works everywhere.

#IfWinActive ahk_class Chrome_WidgetWin_1
  code goes here
#IfWinActive
2 Answers
Related