Is this capability available in any of the GUI toolkits (searching
Tkinter docs brought up nothing)? Is there a C library that I could
wrap? Or maybe I just need to use the Windows extensions. But if so,
how - I don't have the slightest idea how that would work.
Anyone have any pointers?
--
Christopher
> Is this capability available in any of the GUI toolkits (searching
> Tkinter docs brought up nothing)? Is there a C library that I could
> wrap? Or maybe I just need to use the Windows extensions. But if so,
> how - I don't have the slightest idea how that would work.
>
> Anyone have any pointers?
win32api's PostMessage might be useful. random google link:
http://mail.python.org/pipermail/python-win32/2002-December/000635.html
</F>
Other random resources:
Simon Brunning has written a 3-part details blog entry on
'automating the win32 gui'.
And there's a library named 'autoit' which can be driven by com.
Thomas
<accent type="fake Finnish rock'n'roll">
Thank you very many, Fredrik, Thomas!
</accent>
Autoit does exactly what I need (click on a specific coordinate in a
canvas-like window), and finally a reason to learn to use ctypes,
too...
--
Christopher
But I gave up using it in the end, 'cos it was so fragile. If the wrong
window gained focus, the script would die. Besides, there are some controls
that it won't drive unless you are willing to resort to mouse clicks on
absolute positions, which is also fragile.
In the end, I just drove the Windows API directly. Yes, using ctypes a lot
of the time. ;-) You can find my current work in progress here:
http://www.brunningonline.net/simon/blog/archives/winGuiAuto.py.html
It's not far from being ready to go, actually. It just needs a few more
tests, some introductory docs, and an installation script. It's quite
useable, though - the functions themselves are well documented, and the test
script gives you a good high level introduction. We use it a lot.
Cheers,
Simon Brunning,
http://www.brunningonline.net/simon/blog/
--LongSig
-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.