title: How to get the win32api Virtual Key Code of an entry value
body: <p>Like the title suggest it's about the win32api Virtual key codes</p>
  <p>see : <a href="https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes</a></p>
  <p>I need to convert a letter in an entry into it's virutal key code. If the entry value it's A we need to convert it as 0x41 if it's B it will be 0x42 if it's C 0x43 etc. And it can also work with Shift,Ctrl or Alt (that's not only with letters). My problem is that I don't know how to get their virtual key code based on the Key in the entry.</p>
  <p>Right here for example you have an entry with value U we should obtain the virtual key code of U that is =&gt;     0x55</p>
  <p><a href="https://i.stack.imgur.com/1NQjs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1NQjs.png" alt="entryvalue" /></a></p>
  <p>So when we click on the key, GetKeyState() of win32api will detect it (because it will be in the form 0x0...) and a click will be made with the help of pyautogui.</p>
  <p><strong>It is absolutely necessary to convert the value of the input into virtual key code in order to get GetKeyState to work with</strong></p>