I am trying to control a game Hill climb racing using python. I am using the code from this answer How to simulate keys in game with pywinauto. But my system is not recognizing scan codes for the left arrow(0x4B) and right arrow keys(0x4D). Instead, it is recognizing these as pressing numbers 4 and 6. I couldn't find any alternate scan codes. Can someone please help me with this? I am using windows 10.
Asked
Active
Viewed 141 times
0
-
Do you have the NUMLK on? – itprorh66 Nov 07 '20 at 20:37
-
Can't believe that was the issue!!! Thanks!! – Manoj_Nain Nov 08 '20 at 10:09
-
Speaking from experience, you aren't the first nor will you be the last that has been snagged by the simple stuff – itprorh66 Nov 08 '20 at 15:01