Jump to content

Recommended Posts

Posted (edited)

Hello folks,

 I am trying run a program within an SAP  program but based on a specific name. To be clear,

Step 1- I am able to open the program from the program files directory.

Step 2 - once it opens, there are a list of recent projects that i worked on, so i use button class to click on the specific project (which works for now but it can change).

Step 3- Then i have click a sub directory once it opens

Step 4 - to execute a function key (f8). 

I use the Autoitv3 Window Info to grab the class name for step 3 and i get AfxWnd70u . Below is the code i am using, but step 3 doesnt work. 

Run ("C:\Program Files (x86)\xxxner.exe")
Sleep(15000)
WinActivate("SAP xxxxxxxxxxx")
Send ("{Enter}")
Sleep(15000)
ControlClick("SAP xxxxxxxxxxx", "", "[CLASSNN:Button14]")
Sleep(1000)
ControlClick("", "" , " [CLASSNN:AfxWnd70u]", "",109,73)

 

 

Any help on that and also how to accomplish Step 2 based on the word recognition.

 

 

Untitled.jpg

Edited by f22raptor
Posted

If the:

ControlClick("SAP xxxxxxxxxxx", "", "[CLASSNN:Button14]")

is working, you can Send an arrow down Key using the send command and then Send ENTER

or perhaps your interface has a place where you could just ControlSetText the entire path to your project and skip both of these steps...

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...