I am trying to automate clicks and sending text in DAZ Studio (a 3d program). The gui is made in Qt and window panes be docked, undocked, moved, and hidden.
I can use the DAZ Studio's native script to display tabs but am not sure how to activate them or interact with the buttons. I can grab QWidget windows, but I think they change numbers between sessions. When I send keys they are often intercepted by the viewport and interpreted as navigation.
Any ideas on how to reliably find and interact with GUI objects in a program like this? I have been trying the Acc library but I am not sure how to grab the root window. Thanks!
Automating Gui in DAZ Studio (3d program)
- FishWalker
- Posts: 7
- Joined: 22 Apr 2021, 04:47
Re: Automating Gui in DAZ Studio (3d program)
If you just want to type something at a desired location, why don't you try using MouseClick by specifying it's location and then - SendInput
That way the mouse clicks in the text box, and the text will be entered
That way the mouse clicks in the text box, and the text will be entered
- FishWalker
- Posts: 7
- Joined: 22 Apr 2021, 04:47
Re: Automating Gui in DAZ Studio (3d program)
Thanks! Because all of the Qt widgets are dynamic I don't know exactly where the fields will be on the screen. The widget numbers also change each loading. The window I want might be QWidget77, QWidget84, etc. Maybe there is a way to step through all the QWidgets and get their properties to pick the right one?
Right now I am using AutomateMyTask to do pixel searches for buttons, which usually works on my system. Some panels share icons too so even a pixel search can find conflicting fields if different window tabs are opened. I can see there is an Acc structure in the program but am not sure how to activate the root window to send an Acc_Get.
Right now I am using AutomateMyTask to do pixel searches for buttons, which usually works on my system. Some panels share icons too so even a pixel search can find conflicting fields if different window tabs are opened. I can see there is an Acc structure in the program but am not sure how to activate the root window to send an Acc_Get.
Re: Automating Gui in DAZ Studio (3d program)
I see. Then I am not sure how to help you.
Try asking a more specific question in the forum once again pertaining to identifying a window (panel) in general. Then you can use that in Qt perhaps
Try asking a more specific question in the forum once again pertaining to identifying a window (panel) in general. Then you can use that in Qt perhaps
Who is online
Users browsing this forum: imstupidpleshelp, marypoppins_1 and 163 guests