Hi, I've been looking for a solution to this question for some time now.
Hopefully you could help me out. There's a program (Golden Software Surfer)
that I have successfully automated using Python COM. I normally am able to
control every portion I need. The part I have trouble accessing is under
Emre CETIN via python-win32 wrote:
> Hi, I've been looking for a solution to this question for some time
> now. Hopefully you could help me out. There's a program (Golden
> Software Surfer) that I have successfully automated using Python COM.
> I normally am able to control every portion I need. Th
Thank you for your reply. I wanted to try it but for seom reason the code that
has been running without a problem suddenly gave this error:
import win32com.client
srf = win32com.client.gencache.EnsureDispatch('Surfer.Application') # after
this line of code the error below is produced...
-
Emre CETIN wrote:
>
> Finally I got it to work! Here it is:
>
> |importwin32com.client srf
> =win32com.client.gencache.EnsureDispatch('Surfer.Application')Plot=srf.Documents.Add(1)srf.Visible=TrueMapFrame1=Plot.Shapes.AddImageMap(GridFileName="C:/test.grd")ImageLayer1=MapFrame1.Overlays(1)ImageMap1
When I run `from win32com import adsi` on PY3 I get an exception
`ModuleNotFoundError: No module named 'adsi'` from
`win32comext\adsi\__init__.py`
I took a look around and saw someone opened an issue with a patch before (
https://sourceforge.net/p/pywin32/bugs/620/). Is this an issue with the
inst
Hi again,
I solved the unexpected error I just posted by following this link:
https://mail.python.org/pipermail/python-list/2008-July/509467.html
There is said to:
"Just in case, could you delete the contents of your gen_py
directory (probably in %TEMP%\gen_py)"That did it.
Now I was able to test
Hello again,
Finally I got it to work! Here it is:
import win32com.client
srf = win32com.client.gencache.EnsureDispatch('Surfer.Application')
Plot = srf.Documents.Add(1)
srf.Visible = True
MapFrame1 = Plot.Shapes.AddImageMap(GridFileName="C:/test.grd")
ImageLayer1 = MapFrame1.Overlays(1)
ImageMap1
When I select a few files, the dialog works, but when I select many
files, I get the following error. Do you have any advice?
error: (12291, 'GetOpenFileNameW', 'No error message is available')
Error 12291 is FNERR_BUFFERTOOSMALL
The full code is below
import win32con
import win32gui
ret = wi