title: Why won't hotkeys work on certain desktop applications?
body: <p>Ok so I have used Autoit, python, and Powertoys to create shortcuts but when I try to use the hotkey on a certain desktop application (Its a cash register app) it will not respond, the script is still working because I go back to notepad and the hot key still works. Does anyone know why the app will not respond to simulated keystrokes?</p>
  <pre><code>HotKeySet ( '{Insert}' ,'Func1')
  HotKeySet ( 'x' ,'Func2')
  
  While 1
      Sleep(50)
  WEnd
  
  Func Func1()
      Send(&quot;b&quot;)
  EndFunc
  
  
  Func Func2()
      Exit
  EndFunc
  </code></pre>
  <p>The hot key works fine on notepad and the internet but I when I click the Cash Register Application the Hot keys do not work, the script is still running because if I go back to notepad the hotkeys still work.</p>