Does anyone know which module they use?

KPartner

Newbie
Joined
May 1, 2022
Messages
17
Reaction score
8
2023-03-02 12 28 32.png





I looked up a bot program a while ago. It seems to be using C#, but I wonder which module I should use to operate the window and the mouse at the same time.
I'm so curious that each program window has a mouse assigned to it. Someone tell me how.
Can I do it with Python?



* I'm using a translator. Sorry for my clumsy sentence!
 
Hmm, you can only have 1 cursor in windows that I'm aware of. To achieve something like this(multiple cursors across different active forms), you will need to simulate this effect by creating a custom control that responds to mouse events.

To create the custom control you can inherit from the Control class and override its OnPaint and OnMouseXXX events. In the OnPaint event, you can draw your custom cursor using the Graphics object provided by the event arguments. In the OnMouseXXX events (such as OnMouseMove, OnMouseDown, etc.), you can respond to the mouse events and update the position of your custom cursor.

Once you have created your custom control, you can add multiple instances of it to your forms, each with its own custom cursor.
 
Back
Top