By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,787 Members | 1,379 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,787 IT Pros & Developers. It's quick & easy.

Scripting SAP GUI (Windows)

P: n/a
Hi,

I need to script SAP GUI running on MS-Windows:

Open SAP GUI window, if it is not already open, and then batch input
some keystrokes.

The following solutions were found by google:

- autohotkey: not preferred, since it has an own programming
language. This will slow down development.
- pyHook
- user pywin32 and SetWindowsHookEx

I develop with python since seven years, but only on linux.

Any hints?
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Jul 2 '08 #1
Share this Question
Share on Google+
5 Replies

P: n/a
First of all Linux is much better place.

why you want to automate GUI with python. You can easily use QTP such
GUI testing tools to automate your staff.

But that does not mean I am saying the Python is bad in any way. Py and
Perl are the two most good things in this world.

py-py,

Prosenjit

Thomas Guettler wrote:
Hi,

I need to script SAP GUI running on MS-Windows:

Open SAP GUI window, if it is not already open, and then batch input
some keystrokes.

The following solutions were found by google:

- autohotkey: not preferred, since it has an own programming
language. This will slow down development.
- pyHook
- user pywin32 and SetWindowsHookEx

I develop with python since seven years, but only on linux.

Any hints?

Jul 2 '08 #2

P: n/a
I just got this link in a german newsgroup:

http://pywinauto.openqa.org/

Seems to be what I was looking for. Nevertheless feedback still welcome.

Thomas Guettler schrieb:
Hi,

I need to script SAP GUI running on MS-Windows:

Open SAP GUI window, if it is not already open, and then batch input
some keystrokes.

The following solutions were found by google:

- autohotkey: not preferred, since it has an own programming
language. This will slow down development.
- pyHook
- user pywin32 and SetWindowsHookEx

I develop with python since seven years, but only on linux.

Any hints?


--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Jul 2 '08 #3

P: n/a
Thomas Guettler <hv@tbz-pariv.de>:
Hi,

I need to script SAP GUI running on MS-Windows:
Doesn't that thing have a COM interface?

--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
Jul 2 '08 #4

P: n/a
Hi!
Linux is much better place
You confuse proselitism and objectivity...

@-salutations
--
Michel Claveau

Jul 2 '08 #5

P: n/a
Hi!

You can use Autoit.
Bad "conception" language ; but many good tools, for identify windows,
process, send keystrokes, emulate mouse, etc.
(Autohotkey is make on Autoit 2 ; Autoit is actually in version 3).
Good trick : Autoit-X is a COM server, with the most importants
functions of Autoit (nor GUI) ; and Autoit-X can be driven from
Python+PyWin32.

*sorry for my bad english*

Michel Claveau

PS : http://www.autoitscript.com/autoit3/ (& look also forums)


Jul 2 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.