Is it possible to move and click the mouse in an inactive window with Python?











up vote
0
down vote

favorite












Is there a way to make the mouse move to certain coordinates and click inside of a window that might be in the background or behind another window without losing focus.



The idea is to let it work in the background while I'm using the computer for something else.



I'm working with Python on Windows 10.










share|improve this question









New contributor




Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    Welcome to SO. Please check your tags. It is not clear on what operating system you are working on.
    – xetra11
    Nov 16 at 15:22










  • Oh yeah I'll fix that, it's on windows and python.
    – Igor Markovic
    Nov 17 at 15:16










  • Okay then please edit your question. Otherwise we have to downvote it :(
    – xetra11
    Nov 17 at 15:17















up vote
0
down vote

favorite












Is there a way to make the mouse move to certain coordinates and click inside of a window that might be in the background or behind another window without losing focus.



The idea is to let it work in the background while I'm using the computer for something else.



I'm working with Python on Windows 10.










share|improve this question









New contributor




Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    Welcome to SO. Please check your tags. It is not clear on what operating system you are working on.
    – xetra11
    Nov 16 at 15:22










  • Oh yeah I'll fix that, it's on windows and python.
    – Igor Markovic
    Nov 17 at 15:16










  • Okay then please edit your question. Otherwise we have to downvote it :(
    – xetra11
    Nov 17 at 15:17













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Is there a way to make the mouse move to certain coordinates and click inside of a window that might be in the background or behind another window without losing focus.



The idea is to let it work in the background while I'm using the computer for something else.



I'm working with Python on Windows 10.










share|improve this question









New contributor




Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Is there a way to make the mouse move to certain coordinates and click inside of a window that might be in the background or behind another window without losing focus.



The idea is to let it work in the background while I'm using the computer for something else.



I'm working with Python on Windows 10.







python windows window mouse move






share|improve this question









New contributor




Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 17 at 15:17





















New contributor




Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 16 at 13:59









Igor Markovic

62




62




New contributor




Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Igor Markovic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2




    Welcome to SO. Please check your tags. It is not clear on what operating system you are working on.
    – xetra11
    Nov 16 at 15:22










  • Oh yeah I'll fix that, it's on windows and python.
    – Igor Markovic
    Nov 17 at 15:16










  • Okay then please edit your question. Otherwise we have to downvote it :(
    – xetra11
    Nov 17 at 15:17














  • 2




    Welcome to SO. Please check your tags. It is not clear on what operating system you are working on.
    – xetra11
    Nov 16 at 15:22










  • Oh yeah I'll fix that, it's on windows and python.
    – Igor Markovic
    Nov 17 at 15:16










  • Okay then please edit your question. Otherwise we have to downvote it :(
    – xetra11
    Nov 17 at 15:17








2




2




Welcome to SO. Please check your tags. It is not clear on what operating system you are working on.
– xetra11
Nov 16 at 15:22




Welcome to SO. Please check your tags. It is not clear on what operating system you are working on.
– xetra11
Nov 16 at 15:22












Oh yeah I'll fix that, it's on windows and python.
– Igor Markovic
Nov 17 at 15:16




Oh yeah I'll fix that, it's on windows and python.
– Igor Markovic
Nov 17 at 15:16












Okay then please edit your question. Otherwise we have to downvote it :(
– xetra11
Nov 17 at 15:17




Okay then please edit your question. Otherwise we have to downvote it :(
– xetra11
Nov 17 at 15:17

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Igor Markovic is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53339318%2fis-it-possible-to-move-and-click-the-mouse-in-an-inactive-window-with-python%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Igor Markovic is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Igor Markovic is a new contributor. Be nice, and check out our Code of Conduct.













Igor Markovic is a new contributor. Be nice, and check out our Code of Conduct.












Igor Markovic is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53339318%2fis-it-possible-to-move-and-click-the-mouse-in-an-inactive-window-with-python%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy