Sentdex / pygta5

Explorations of Using Python to play Grand Theft Auto 5.
MIT License
3.91k stars 823 forks source link

GTA not taking input #92

Closed sanjeevrayasam closed 3 years ago

sanjeevrayasam commented 6 years ago

sir i have tryed your code and even i used piautoguie but both are unabel to make a move in the game ,please help me out sir

Data-Scientist-Singh commented 6 years ago

same problem and btw its pyautogui

daniel-kukiela commented 6 years ago

Pyautogui won't work with games relaying on direct input devices. There is directkeys.py file you should use.

sanjeevrayasam commented 6 years ago

Sir I have used even that but still not working I am using windows laptop with i3 processor is it compatable

Sent from my iPhone

On 02-Apr-2018, at 5:23 AM, Daniel Kukieła notifications@github.com wrote:

Pyautogui won't work with games relaying on direct input devices. There is directkeys.py file you should use.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

daniel-kukiela commented 6 years ago

I wrote that library specifically for that task and i know it's working. Are you sure we are talking about directkeys.py? Also what's the game that doesn't work with?

Data-Scientist-Singh commented 6 years ago

at first it worked on nfs but then i stop nfs and started to work with the gta 5 after that it never worked either for gtaa 5 or nfs never and even in nfs it used to press only w nothing else and now it don't even do that

PeterGardas commented 6 years ago

Try this : https://github.com/Sentdex/pygta5/issues/95

Petr Gardas