At first you must forgive my double posting (4 & 5 in terms of date and
4 & 7 in terms of answers). I must then thank the new comers:
Michael, Alex Martelli and Mike Meyer.

Michel wrote:
>> [EMAIL PROTECTED] wrote:
>> But then I changed idea... Also if it is already one year that I try
>> to find a solution in Linux (mainly with Python or DCOP and KDE),

 > This doesn't express the question you have anywhere clearly enough.

My English is so poor that I don't understand...

 > Linux can run perfectly happily without any form of windowing
 > environment.

I know, but nowadays almost any relevant application has a GUI.

 > Do you want to replay against qt applications? KDE? wx? GTK?
 > Or send raw X11 events? The answers to these questions aren't
 > linux specific either...

I have nothing against GUI and in fact I chose Qt also if I made
only limited tests using Qt Designer. However I should prefer not
to program at low level (sending raw X11 events...).
Being a newbye I was confident that someone had already developed
a macro language for Linux...
I hoped to have found it in Python, but I was wrong.

Alex Martelli wrote:

 > Actually, if the app is running under X11 you may try to fake out a
 > keystroke event (with low level calls, but ctypes might let you use
 > it from Python). Of course, the app WILL be told that the keystroke
 > is fake, through a special flag if it cares to check for it,
 > for security reasons; but if the app doesn't specifically defend
 > itself in this way.

 > See, for example, http://xmacro.sourceforge.net/ -- I guess that
 > xmacroplay could pretty easily be adapted, or maybe even used as is
 > with an os.popen.

My answer is the same as that given to Michael about low level
programming.
But I must thank anyway Alex for giving informations to such a level
(I didn't know that under Linux there was such a level of
sophistication with the possibility for an application to discover fake
keystrokes...).

If this fake keystroke is used to fire an event (like pressing a
button), the fake flag is propagated to the action taken by the button?

For the other Alex observations (about Mac OsX and my examples of
automation centered on web automation) I have a PC, and the fact that
Python is very good at dealing with the web, doesn't help too much
in this case...
In any case a macro language like AutoIt is a general purpose
application.

At last I must thank  Mike Meyer for his suggestion to use python-xlib
to avoid low level programming...

Bye.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to