Jump to content

Auto Click within an application

Recommended Posts


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")
WinActivate("SAP xxxxxxxxxxx")
Send ("{Enter}")
ControlClick("SAP xxxxxxxxxxx", "", "[CLASSNN:Button14]")
ControlClick("", "" , " [CLASSNN:AfxWnd70u]", "",109,73)



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




Edited by f22raptor

Share this post

Link to post
Share on other sites

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...


Share this post

Link to post
Share on other sites

Regards Autolaser

Share this post

Link to post
Share on other sites

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


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.