473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Scripting SAP GUI (Windows)

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
5 8418
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
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
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
Hi!
Linux is much better place
You confuse proselitism and objectivity...

@-salutations
--
Michel Claveau

Jul 2 '08 #5
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rodd Snook | last post by:
I have an application which makes extensive use of the Scripting.Dictionary object. I'm not doing anything silly like putting them outside the page scope -- just creating quite a few of them and...
2
by: dito | last post by:
I have a .asp page that contains an activex componet. When I launch it in a browser, it returns an error that the viewer is unable to create it's resource objects. "To rectify this problem,...
0
by: fiona | last post by:
Catalyst Releases Scripting Editions of SocketTools Client and server-side development for Active Server Pages and PHP. Yucca Valley, CA, May 25, 2005 - Catalyst Development Corp...
19
by: DW | last post by:
Hi, all... I have a sizeable database running under Oracle 9.2.0.4 under AIX 5.2.0. I am faced with an impending move to a Windows environment, running under SQL 2000. Currently, we are...
6
by: Wolfgang Keller | last post by:
Hello, I'm looking for a spreadsheet application (MacOS X prefered, but Windows, Linux ar available as well) with support for Python scripting (third-party "plug-ins" are ok) and a database...
1
by: andrewcw | last post by:
I have used System.Management in the past to extract and walk thru drives & check their type. I can also do it with COM's FileSystemObject. Here I am trying to just use the Management Object...
4
by: korund | last post by:
Is there any difference to read & write to windows Registry with VBScript or JavaScript? Both scripting languages have similar syntax. What is preferable use for this? thanks.
12
by: Tony Belding | last post by:
I'm interested in using an off-the-shelf interpreted language as a user-accessible scripting language for a MUCK. I'm just not sure if I can find one that does everything I need. The MUCK must be...
0
ADezii
by: ADezii | last post by:
This is the 2nd Tip in a series of Tips on the Microsoft Scripting Runtime Library. The 1st Tip related to Drives, while this Tip will concentrate on the Folders (Directories) in your PC and various...
0
ADezii
by: ADezii | last post by:
This is the 3rd in a series of Tips dealing specifically with the Microsoft Scripting Runtime Library. In this Tip, we'll show you how to return specific Properties relating to Files, as well as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.