Automate injection with python code
shumakove opened this issue · 0 comments
shumakove commented
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?