Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate injection with python code #87

Open
shumakove opened this issue Feb 5, 2023 · 0 comments
Open

Automate injection with python code #87

shumakove opened this issue Feb 5, 2023 · 0 comments

Comments

@shumakove
Copy link

Hello there, i am trying to use this tool with my pyhon code

import win32api
import win32con
import win32gui

def press_button(hwnd, button_text):
    button_hwnd = win32gui.FindWindowEx(hwnd, 0, "Button", button_text)
    print(button_hwnd)
    win32api.PostMessage(button_hwnd, win32con.BM_CLICK, 0, 0)

# Example usage
hwnd = win32gui.FindWindow(None, "Extreme Injector v3.7.2 by master131")
print(hwnd)
press_button(hwnd, "Inject")

But button_hwnd not initialize because it cant find a handle for Inject button. By the way other buttons also cant be found. Is it possible to click on the buttons with the help of win32?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant