f22raptor Posted June 3, 2015 Posted June 3, 2015 (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 opensStep 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. Edited June 3, 2015 by f22raptor
l3ill Posted June 3, 2015 Posted June 3, 2015 If the:ControlClick("SAP xxxxxxxxxxx", "", "[CLASSNN:Button14]")is working, you can Send an arrow down Key using the send command and then Send ENTERor perhaps your interface has a place where you could just ControlSetText the entire path to your project and skip both of these steps... My Contributions... Reveal hidden contents SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
Autolaser Posted June 3, 2015 Posted June 3, 2015 @f22raptor search in forum for AFXortest this https://www.autoitscript.com/forum/topic/153520-iuiautomation-ms-framework-automate-chrome-ff-ie/Example 10 Automating mach 3 (AFX windows and other hard to get recognized by AutoIT)https://www.autoitscript.com/forum/topic/153520-iuiautomation-ms-framework-automate-chrome-ff-ie/?page=3#comment-1126899 Regards Autolaser
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now