x-actly / Eve-Online-Mining-Bot

simple python script to automate mining in eve online
11 stars 5 forks source link

selecting window by pid and autofocus window ? #32

Closed jarlah closed 5 months ago

jarlah commented 5 months ago

Is it possible ? Can Python catch key strokes and mouse input if app is not visible ?

x-actly commented 5 months ago

@jarlah Are you considering the possibility that all keyboard inputs and mouse interactions should be executed solely within the Eve client, potentially enabling botting across multiple clients?

jarlah commented 5 months ago

Actually i see now that pyautogui is running without focus and is capable of exexuting key strokes and mouse input while being not visible or out of focus. So this means the bot can make you select among a list of prosesses and then it will focus that process/window (bring it into foreground) periodically and before moving or typing.

@x-actly nah i dont think so i just feel we need to be sure what window we are botting in. So forcing eve game client into focus by pid will solve this.

Will also remove the possibility for the bot to click around everywhere and like all your friends cat posts on insta 😅 i mean i have tested it alot lately without an eve client and its bringing up all sorts of stuff 😂

jarlah commented 5 months ago

Been looking at bots framework written with Elm thats using memory reading. Someone needs to make a free open source solution for reading memory model in eve .... in rust maybe. Something low level and cross plattform