Jake222 Posted April 30, 2020 Share Posted April 30, 2020 .... from an onscreen button... This is driving me nuts, since a full week... using UIAWrappers.au3 Through UIA_Getobject found the button on screen I can click it with an UIA_ action, and this works How can I get the toggle state in a local variable? Any help very appreciated, Thanks Jake, senior retired programmer Link to comment Share on other sites More sharing options...
Jake222 Posted May 1, 2020 Author Share Posted May 1, 2020 #include <UIAWrappers.au3> Local $OOp0,$OOp1,$OOpx Local $statxt $OOp1=_UIA_getObjectByFindAll($UIA_oDesktop, "Title:=My ApplicationJT;controltype:=UIA_WindowControlTypeId;class:=MainWindow", $treescope_children) _UIA_Action($OOp1,"setfocus") $OOp0=_UIA_getObjectByFindAll($OOp1, "Title:=;controltype:=UIA_GroupControlTypeId;class:=QWidget", $treescope_children) $OOpx=_UIA_getObjectByFindAll($OOp0, "title:=Enable;ControlType:=UIA_CheckBoxControlTypeId", $treescope_subtree) _UIA_action($OOpx,"highlight") MsgBox(1,"",_UIA_getPropertyValue($OOpx,"ToggleToggleState")) $statxt = _UIA_ToggleToggleState($OOpx) MsgBox(1,"",$statxt) anyone... please? Link to comment Share on other sites More sharing options...
Jake222 Posted May 7, 2020 Author Share Posted May 7, 2020 Well, thank you all for the support I herewith cancel my subscription to this site, it was of no help anyway Link to comment Share on other sites More sharing options...
Nine Posted May 7, 2020 Share Posted May 7, 2020 13 minutes ago, Jake222 said: I herewith cancel my subscription to this site, it was of no help anyway “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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
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