I've had my challenges with 3.10 and stayed on 3.9, with good results.<br><br><div id="ymail_android_signature">Sent from Android</div> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Tue, Oct 11, 2022 at 11:00, python-win32-request@python.org</div><div><python-win32-request@python.org> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div dir="ltr">Send python-win32 mailing list submissions to<br></div><div dir="ltr">    <a ymailto="mailto:python-win32@python.org" href="mailto:python-win32@python.org">python-win32@python.org</a><br></div><div dir="ltr"><br></div><div dir="ltr">To subscribe or unsubscribe via the World Wide Web, visit<br></div><div dir="ltr">    <a href="https://mail.python.org/mailman/listinfo/python-win32" target="_blank">https://mail.python.org/mailman/listinfo/python-win32</a><br></div><div dir="ltr">or, via email, send a message with subject or body 'help' to<br></div><div dir="ltr">    <a ymailto="mailto:python-win32-request@python.org" href="mailto:python-win32-request@python.org">python-win32-request@python.org</a><br></div><div dir="ltr"><br></div><div dir="ltr">You can reach the person managing the list at<br></div><div dir="ltr">    <a ymailto="mailto:python-win32-owner@python.org" href="mailto:python-win32-owner@python.org">python-win32-owner@python.org</a><br></div><div dir="ltr"><br></div><div dir="ltr">When replying, please edit your Subject line so it is more specific<br></div><div dir="ltr">than "Re: Contents of python-win32 digest..."<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Today's Topics:<br></div><div dir="ltr"><br></div><div dir="ltr">   1. Unpredictable behavior of pywin32 on new computer (Zach York)<br></div><div dir="ltr">   2. Re: Unpredictable behavior of pywin32 on new computer<br></div><div dir="ltr">      (Tim Roberts)<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">----------------------------------------------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 1<br></div><div dir="ltr">Date: Mon, 10 Oct 2022 12:34:43 -0700<br></div><div dir="ltr">From: Zach York <<a ymailto="mailto:zyork.contribution@gmail.com" href="mailto:zyork.contribution@gmail.com">zyork.contribution@gmail.com</a>><br></div><div dir="ltr">To: <a ymailto="mailto:python-win32@python.org" href="mailto:python-win32@python.org">python-win32@python.org</a><br></div><div dir="ltr">Subject: [python-win32] Unpredictable behavior of pywin32 on new<br></div><div dir="ltr">    computer<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr">    <CAN+qs_PndgZtpdX-8vSx-euZPVTc4dXw=SytAKS+<a ymailto="mailto:kmwNw-d6vw@mail.gmail.com" href="mailto:kmwNw-d6vw@mail.gmail.com">kmwNw-d6vw@mail.gmail.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Hello,<br></div><div dir="ltr"><br></div><div dir="ltr">I have recently upgraded my computer and after upgrading and installing<br></div><div dir="ltr">pywin32, I have found the behavior to be extremely unpredictable and in a<br></div><div dir="ltr">lot of cases, just wrong.<br></div><div dir="ltr"><br></div><div dir="ltr">Environment:<br></div><div dir="ltr">Python 3.10 (upgraded from python 3.9 on the previous computer)<br></div><div dir="ltr">pywin32 304<br></div><div dir="ltr">Windows 10: 19044.2006<br></div><div dir="ltr"><br></div><div dir="ltr">My scripts are mostly trying to do some background clicking using<br></div><div dir="ltr">PostMessage/SendMessage  and window resizing/positioning using MoveWindow.<br></div><div dir="ltr">I used to be able to use SendMessage reliably before this computer upgrade,<br></div><div dir="ltr">but now it seems like I need a combination of PostMessage + SendMessage to<br></div><div dir="ltr">see a click at all). For MoveWindow, the results are entirely unpredictable<br></div><div dir="ltr">(window isn't moved at all, window resized and moved to the wrong location,<br></div><div dir="ltr">etc).<br></div><div dir="ltr"><br></div><div dir="ltr">I assume this has to somehow be with my setup and not pywin32, but I am<br></div><div dir="ltr">lost on what might be causing this weird behavior. Any insight would be<br></div><div dir="ltr">greatly appreciated!<br></div><div dir="ltr"><br></div><div dir="ltr">Thanks,<br></div><div dir="ltr">Zach<br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="https://mail.python.org/pipermail/python-win32/attachments/20221010/b5e420d7/attachment-0001.html" target="_blank">https://mail.python.org/pipermail/python-win32/attachments/20221010/b5e420d7/attachment-0001.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 2<br></div><div dir="ltr">Date: Mon, 10 Oct 2022 16:41:50 -0700<br></div><div dir="ltr">From: Tim Roberts <<a ymailto="mailto:timr@probo.com" href="mailto:timr@probo.com">timr@probo.com</a>><br></div><div dir="ltr">To: <a ymailto="mailto:python-win32@python.org" href="mailto:python-win32@python.org">python-win32@python.org</a><br></div><div dir="ltr">Subject: Re: [python-win32] Unpredictable behavior of pywin32 on new<br></div><div dir="ltr">    computer<br></div><div dir="ltr">Message-ID: <<a ymailto="mailto:a548a50a-f7a2-5042-f046-b5904d328643@probo.com" href="mailto:a548a50a-f7a2-5042-f046-b5904d328643@probo.com">a548a50a-f7a2-5042-f046-b5904d328643@probo.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"; Format="flowed"<br></div><div dir="ltr"><br></div><div dir="ltr">Zach York wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">> I have recently upgraded my computer and after upgrading and <br></div><div dir="ltr">> installing pywin32, I have found the behavior to be extremely <br></div><div dir="ltr">> unpredictable and in a lot of cases, just wrong.<br></div><div dir="ltr">> ...<br></div><div dir="ltr">> My scripts are mostly trying to do some background clicking using <br></div><div dir="ltr">> PostMessage/SendMessage ?and window resizing/positioning using <br></div><div dir="ltr">> MoveWindow. I used to be able to use SendMessage reliably before this <br></div><div dir="ltr">> computer upgrade, but now it seems like I need a combination of <br></div><div dir="ltr">> PostMessage?+ SendMessage to see a click at all). For MoveWindow, the <br></div><div dir="ltr">> results are entirely unpredictable (window isn't moved at all, window <br></div><div dir="ltr">> resized and moved to the wrong location, etc).<br></div><div dir="ltr">><br></div><div dir="ltr">> I assume this has to somehow be with my setup and not pywin32, but I <br></div><div dir="ltr">> am lost on what might be causing this weird behavior. Any insight <br></div><div dir="ltr">> would be greatly appreciated!<br></div><div dir="ltr"><br></div><div dir="ltr">If you upgraded your display as well, the problem is probably the <br></div><div dir="ltr">display scaling.? Unless you mark your application has being "high DPI <br></div><div dir="ltr">aware", Windows will lie to you about pixel locations.? If your display <br></div><div dir="ltr">is 3840x2160, but you have scaling set to 200%, your "non-aware" <br></div><div dir="ltr">application will be told that the display is 1920x1080, and the pixel <br></div><div dir="ltr">coordinates you are sending to other applications will be wrong.? Go <br></div><div dir="ltr">read about "high DPI aware" applications.? It's a mess.<br></div><div dir="ltr"><br></div><div dir="ltr">-- <br></div><div dir="ltr">Tim Roberts, <a ymailto="mailto:timr@probo.com" href="mailto:timr@probo.com">timr@probo.com</a><br></div><div dir="ltr">Providenza & Boekelheide, Inc.<br></div><div dir="ltr"><br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">A non-text attachment was scrubbed...<br></div><div dir="ltr">Name: smime.p7s<br></div><div dir="ltr">Type: application/pkcs7-signature<br></div><div dir="ltr">Size: 3428 bytes<br></div><div dir="ltr">Desc: S/MIME Cryptographic Signature<br></div><div dir="ltr">URL: <<a href="https://mail.python.org/pipermail/python-win32/attachments/20221010/a6f92006/attachment-0001.bin" target="_blank">https://mail.python.org/pipermail/python-win32/attachments/20221010/a6f92006/attachment-0001.bin</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Subject: Digest Footer<br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">python-win32 mailing list<br></div><div dir="ltr"><a ymailto="mailto:python-win32@python.org" href="mailto:python-win32@python.org">python-win32@python.org</a><br></div><div dir="ltr"><a href="https://mail.python.org/mailman/listinfo/python-win32" target="_blank">https://mail.python.org/mailman/listinfo/python-win32</a><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">End of python-win32 Digest, Vol 232, Issue 1<br></div><div dir="ltr">********************************************<br></div> </div> </blockquote>