[python-win32] WM_MOUSEWHEEL It only works in one window.

2022-02-15 Thread nakarin samon
Is there any python that works like pywin32 SendMessage PostMessage.
doesn't move the mouse?

I want to move the mouse scroll or click the mouse without moving the
mouse, I have used WM_MOUSEWHEEL. but not successful. It only works in one
window. Will there be another one

or it only works on the left side of the screen I tried moving the window
to another section but it didn't work when I moved it back to the same
place in the top left it works.

this is an example:
https://drive.google.com/file/d/137ouHgJR3eRZTUOFkHjPGO2eoMfQelCz/view?usp=sharing
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Run solidworks macro from python.

2022-02-15 Thread Tim Roberts

Sanaa Mouzahir wrote:


Apologies for the late reply, I had to go through a lot of 
documentation regarding SolidWorks itself. Unfortunately, the 
available documentation that I find is regarding creating a SW COM 
object, however, nothing about running a macro already written in 
SolidWorks VB. More specifically, when I look up 'swbindings.py' I do 
not get any output, and if I try to import it, I get the error message 
'no module named swbindings'.


Anything you can do from VBA can be done from Python, and it's usually a 
one-for-one translation.  Somewhere in the SolidWorks object model 
documentation, there has to be a command to run a named VBA script.  
That's what you need to find.  The key is that this is not Python 
related.  You're just controlling their COM server, so you need to find 
the right method in the right interface in their object model.


--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.



smime.p7s
Description: S/MIME Cryptographic Signature
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32