Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

send mouse clicks to inactive windows

hello
I want to ask about postmessage function that send mouse clicks and keyboard strokes to inactive windows
i don't want to active that window

I WANT TO USE ONLY TITLE OF WINDOW AND COORDINATES
Heard of Google?
https://www.google.com/search?q=windows+...und+python

First result is an answer to your question.
https://stackoverflow.com/questions/5928...-in-python
[Image: 3943c24fb6058003233768a9747351d2.png]

this is for active windows
i want inactive windows
What do you mean by inactive window? as soon as you send keystrokes to a window it becomes active.

You might want to checkout the documentation for PyautoGUI, it might have what your looking for.

https://pyautogui.readthedocs.io/en/latest/
(Oct 7, 2021 08:12 AM)salemxx66 Wrote:  this is for active windows
i want inactive windows

The status of the window doesn't make a difference. You just specify the precise ID/name of the window you want the keys to be sent to. If you need to keep the window in the background, you could auto-minimize (or force minimize) but depending on how you go about doing that it may result in more trouble than its worth.
[Image: chain.png]
I'm guessing you want to make a bot, like a runescape bot or something -- that works in the background. It's not that simple unfortunately. The way runescape bots work, is they send specific commands to the server without doing anything with your mouse or keyboard. They don't even need to render any graphics.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by salemxx66Jan 4, 2022 07:43 PM 2 183 Jan 4, 2022 07:43 PM
Last Post: Tyzx159
[Shell] by Emre_Jan 12, 2021 11:16 PM 0 141 Jan 12, 2021 11:16 PM
Last Post: Emre_
[C] by AstateOct 27, 2020 08:15 PM 2 203 Oct 27, 2020 08:15 PM
Last Post: gurlhackerclub