title: How to simulate a keypress
body: <p>I know about AutoHotKey but I want to make my own program for e.g. make it press F5 every 10 seconds. I searched the internet and Stack Overflow but did not find a solution</p>
  
  <p>Is there a way to do it in C or not? I am using and targeting Windows 8.1</p>