title: using Autohotkey to replace diacritics accents in clipboard
body: <p>I'm trying to write a script in Autohotkey that will take the currently highlighted word, copy it into the clipboard, and then replace accented characters with their non-accented versions. For example, if the word <em>honorábilem</em> is in the clipboard, I want to change it to <em>honorabilem</em>.</p>
  <p>This is what I have tried:</p>
  <pre><code>F1::
  SetTitleMatchMode RegEx
  clipboard =
  Send, ^c 
  wordToParse := %clipboard%
  wordToParse = RegExReplace(wordToParse,&quot;á&quot;,&quot;a&quot;) ; also tried this: StringReplace, clipboard, clipboard, á, a, All
  MsgBox, % clipboard
  </code></pre>
  <p>But the contents of the clipboard don't change. The <em>á</em> never gets replaced with <em>a</em>. Appreciate any help.</p>