HighlanderSword Posted January 12, 2020 Posted January 12, 2020 (edited) Hello, Anyone have any idea how to interact with a dialog box that has no windows associated to it ( did winlist for all and no results) I want to click on the Edit button I tried ControlClick("Scripts", "Edit", "[CLASS:Button; INSTANCE:2]") and it did nothing, and @error returns 0 Edited January 12, 2020 by HighlanderSword update
Subz Posted January 12, 2020 Posted January 12, 2020 The Window Title is Retrospect, not Scripts as you can see in the AutoIt3 Window Info tool screenshot.
HighlanderSword Posted January 12, 2020 Author Posted January 12, 2020 Hello, Same issue using Retrospect or Scripts , I tried scripts as that is the Header on the Dialog I'm trying to interact with.
Danp2 Posted January 12, 2020 Posted January 12, 2020 2 hours ago, HighlanderSword said: I tried ControlClick("Scripts", "Edit", "[CLASS:Button; INSTANCE:2]") Try replacing "Edit" with "". Latest Webdriver UDF Release Webdriver Wiki FAQs
HighlanderSword Posted January 13, 2020 Author Posted January 13, 2020 same issue , nothing happens 3 hours ago, Subz said: The Window Title is Retrospect, not Scripts as you can see in the AutoIt3 Window Info tool screenshot.
Subz Posted January 13, 2020 Posted January 13, 2020 Downloaded the trial and the following works fine for me: ControlClick("Retrospect", "", "Button2")
HighlanderSword Posted January 13, 2020 Author Posted January 13, 2020 (edited) Are you in Manage Scripts , and have a list of scripts and have 2 buttons , New.... and Edit ? I ran the same with just what you had pasted above in a new au3 file and still nothing happens , what am i missing Do you have any other code in your au3 script besides the controlclick ? Are you using Retrospect 16.6.0.133 Edited January 13, 2020 by HighlanderSword added details
Subz Posted January 13, 2020 Posted January 13, 2020 Sorry yes I forgot to add, you need to have #RequireAdmin at the top of your script #RequireAdmin ControlClick("Retrospect", "", "Button2")
HighlanderSword Posted January 13, 2020 Author Posted January 13, 2020 (edited) Hello, Great that has helped me move along very far, now stuck on a edit field and a drop down box. Date filed appears to be an edit box , and can see the values I set pop in for a few seconds and then pop out Have not had any luck with the drop down box , trying to set it to recycle. tried ControlCommand("Retrospect","","dantzcombobox1","SetCurrentSelection", 2) ControlCommand("Retrospect", "", "[CLASS:dantzcombobox; INSTANCE:1]","SelectString","Recycle") Appreciate if you could help me a little bit more..... ;click the edit button ControlClick("Retrospect", "", "Button2") sleep(400) ;Click Schedule Button ControlClick("Retrospect", "", "Button7") sleep(400) ;Click add button ControlClick("Retrospect", "", "Button3") sleep(400) ;Click Single date radio button ControlClick("Retrospect", "", "Button3") sleep(400) ;click the ok button ControlClick("Retrospect", "", "Button5") ;Set Month sleep(400) ControlSend ( "Retrospect", "", "[CLASS:Edit; INSTANCE:4]", "9" , 0) set day ;~ sleep(400) ;~ ControlSetText("Retrospect", "", "Edit5", "15") Set year ;~ sleep(400) ;~ ControlSetText("Retrospect", "", "Edit6", "2020") Edited January 13, 2020 by HighlanderSword uypdates
Nine Posted January 13, 2020 Posted January 13, 2020 Is this a x86 or x64 software ? If it is the later try to run your script x64 also. See if that helps... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
HighlanderSword Posted January 13, 2020 Author Posted January 13, 2020 no difference if it runs x64 or x86
Subz Posted January 13, 2020 Posted January 13, 2020 Haven't had a lot of luck with this myself, while ControlSetText changes the date item, it isn't retained. If i get more time I'll look into it further, unsure if each system has different backups otherwise I'd suggest either exporting/importing the backup or replacing the catalog files. I believe the software also allows external scripting, which may also help, unfortunately they don't have command line support which makes it difficult to automate and is usually more robust then Control... functions.
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