title: GetAsyncKeyState not working
body: <p>I'm fairly new to C++ as I'm more experienced with Java/Python etc. But, I've been trying to implement a simple Trigger Bot, but added a failsafe so that if I press a certain key, the program will call the exit(0) method. But the way I implemented key input doesn't seem to work, could someone maybe help me out?</p>
  
  <pre><code>void MainScan(Contents scan) {
  #if DB
      int debug = clock();
  #endif
      while (true) {
          for (int y = scan.startY; y &lt; scan.compareY; y++) {
              for (int x = scan.startX; x &lt; scan.compareX; x++) {
                  //SetCursorPos(x, y);
                  if (GetAsyncKeyState(VK_DELETE)) {
                      exit(0);
                  }
              }
          }
      }
  }
  </code></pre>