Skip to content

Commit

Permalink
fixed ragemp title check
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Polishchuk committed Sep 24, 2023
1 parent 623d6b8 commit bae81dd
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/binder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ def updateProfiles(self):

def playProfile(self, profileName: str):
print(utils.getActiveWindowTitle().find("RAGE Multiplayer"))
if not self.database.isSettingEnabled('dontCheckForName') and not "RAGE Multiplayer" in utils.getActiveWindowTitle():
return

profileStrings = self.database.findStringsInProfile(profileName)

for profileString in profileStrings:
time.sleep(float(profileString[1])/1000)
utils.singleKeyPress("T")
keyboard.write(str(profileString[0]))
utils.singleKeyPress("ENTER")
if self.database.isSettingEnabled('dontCheckForName') or "RAGE Multiplayer" in utils.getActiveWindowTitle():
profileStrings = self.database.findStringsInProfile(profileName)

for profileString in profileStrings:
time.sleep(float(profileString[1])/1000)
utils.singleKeyPress("T")
keyboard.write(str(profileString[0]))
utils.singleKeyPress("ENTER")

0 comments on commit bae81dd

Please sign in to comment.