Scripting SAP GUI (Windows)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Guettler

    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 SetWindowsHookE x

    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
  • Prosenjit Kundu

    #2
    Re: Scripting SAP GUI (Windows)

    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 SetWindowsHookE x
    >
    I develop with python since seven years, but only on linux.
    >
    Any hints?
    >
    >

    Comment

    • Thomas Guettler

      #3
      Re: Scripting SAP GUI (Windows)

      I just got this link in a german newsgroup:



      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 SetWindowsHookE x
      >
      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

      Comment

      • Sebastian \lunar\ Wiesner

        #4
        Re: Scripting SAP GUI (Windows)

        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)

        Comment

        • Méta-MCI \(MVP\)

          #5
          Re: Scripting SAP GUI (Windows)

          Hi!
          Linux is much better place
          You confuse proselitism and objectivity...

          @-salutations
          --
          Michel Claveau

          Comment

          • Méta-MCI \(MVP\)

            #6
            Re: Scripting SAP GUI (Windows)

            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)




            Comment

            Working...