Hi all,
I'm having hard time trying to simply pass text or button clicks to a Qwidget, I'm not a programmer but I know how to use Autoit
I've found this thread and I'm using SimpleSpy to get a simple code to interact with my Qwidget
Unfortunately I can't focus the windows with the code provided, this is strange, the script is just hanging...
In this example I have open an "Open File" window inside the Qwidget this is why I have #32770 class window
#include "UIAWrappers.au3"
AutoItSetOption("MustDeclareVars", 1)
_UIA_setVar("oP1","Title:=CLO Enterprise OnlineAuth;controltype:=UIA_PaneControlTypeId;class:=QWidget") ;CLO Enterprise OnlineAuth
_UIA_setVar("oP2","Title:=Open File;controltype:=UIA_WindowControlTypeId;class:=#32770") ;Open File
;~ $oUIElement=_UIA_getObjectByFindAll(".mainwindow", "title:=;ControlType:=UIA_TitleBarControlTypeId", $treescope_subtree)
_UIA_setVar("oUIElement","Title:=;controltype:=UIA_TitleBarControlTypeId;class:=") ;ControlType:=UIA_TitleBarControlTypeId;classname:=")
;~ Actions split away from logical/technical definition above can come from configfiles
;~_UIA_Action("oP1","highlight")
_UIA_Action("oP1","setfocus")
WinActivate ("[class:QWidget]","") or WinActivate ("[class:#32770]","") will work to get the focus..
I'm running windows 10 x64
Thanks for your help
Here's wat spy gives me :