statey603 Posted February 26, 2015 Posted February 26, 2015 Hello, I am new to AutoIt. I am trying to determine if it can be used with a Windows application devleoped with PowerBuilder 11. The application be tested is a 32-bit Windows application I tried some simple tests where I used AutoIt Au3 Record to record a launch of my application and followed with some simple menu and screen selections. The recorded script is included below. Note: I excluded the Internal functions section at the beginning of the script. When I run the script, it successfully launches the application and the logon dialog works, but when accessing the main menu and subsequent screens, nothing happens. I can see the mouse pointer move and menu items get selected but no screens appear. Most of the screen and button selections only show as Mouseclicks in the recorded script. I can see the title info for a few of the screens that I had selected, but some just show up as MouseClick. I searched the forum and found very little information concerning PowerBuilder. I am not sure if AutoIt is compatible and/or if I need to specify any includes, directives, libraries, dlls or maybe change configuration settings in the AutoIt options. I could not find anything that was obvious. I appreciate any suggestions that can be provided. Thanks, Bill Run('C:\Options\options.exe') _WinWaitActivate("Logon","") MouseClick("left",295,91,1) Send("{DEL}walter.white{TAB}password123") MouseClick("left",446,45,1) _WinWaitActivate("Options **** DEVELOPMENT DB ****","") MouseClick("left",232,29,1) MouseClick("left",533,70,1) MouseClick("left",615,87,1) MouseClick("left",623,86,1) MouseClick("left",214,171,1) MouseClick("left",735,179,1) MouseClick("left",732,273,1) MouseClick("left",743,406,1) _WinWaitActivate("Options - Assessment","") MouseClick("left",172,97,1) _WinWaitActivate("Options **** DEVELOPMENT DB ****","") MouseClick("left",740,179,1) MouseClick("left",744,172,1) MouseClick("left",747,285,1) MouseClick("left",1027,9,1)
MatheusLPS Posted February 26, 2015 Posted February 26, 2015 I have a tread opened with similar problem. The autoIT find windows can not see some text on a powerBuilder App.
TheSaint Posted February 26, 2015 Posted February 26, 2015 Welcome to the forum. I don't know anything about PowerBuilder, but if you are talking about an executable created with it, then just treat it as any other Windows executable, with the PowerBuilder element not being important (presumably). Have you tried using the Window Info Tool that comes with the AutoIt install? You might be able to use ControlClick? I've never used AutoIt Au3 Record. So I'm presuming it has created the _WinWaitActivate function. It is not in my latest copy of the Help file. I would rewrite the whole thing and use WinWaitActive I'd also use WinActive to test if a window is active, plus WinActivate to make active before you send anything. Using mouse clicks can be tricky. I would cut your code right back (comment out most of it) and test in stages using what I suggested above. It may be, that you cannot interact using mouse clicks, which may be due to something PowerBuilder has done? If the Window Info Tool can see controls and values etc, you should be ok. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)
junkew Posted February 27, 2015 Posted February 27, 2015 I had some success with simplespy and iuiautonation with powerbuilder FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
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