srounet / Pymem

A python library for windows, providing the needed functions to start working on your own with memory editing.
MIT License
303 stars 45 forks source link

Pymem don't search for exact process Name #69

Closed Spawnrad closed 1 year ago

Spawnrad commented 2 years ago

Hi,

When i try to open an application for example "lea.exe", pymem open the wrong process because i have an other process with the name : "plolea.exe"

I found out that in the file pymem.process.py line 272 the code is : if name in process.szExeFile.decode(locale.getpreferredencoding()).lower():

Is it possible to search for the exact process name and not if the name is contains?

Thank you