Jump to content

Some help with ControlClick

Recommended Posts

Hey guys,

sorry if Im asking a noob question but I was try to find out myself and cant get it. Im using autoit for a long time to use packaging software installations for a software deployment solution, but just in case that the setup doesnt understand any parameters. Now Ive a very hard case. Im always trying to use controlclick, but in this case the controls will not recognized from the autoit info window and not from control viewer. so I was thinking to use coordmode, but the setup needs some time for initial loading and in this time it shows a loading screen which has the same title like the window where ive to click the next button. So I think its better to get controlclick to work, for a better reliabe way.

I was starting to use UIA spy and get some window information and tried to it for clicking, but it just clicks nothing. Here are more detailed informations:


My script looks currently like this:

WinWaitActive("NEVARIS 2019 Setup")
;While Not ControlCommand("NEVARIS 2019 Setup","","[CLASS:TextBlock; _Weiterr]","IsEnabled","")
;   Sleep(500)
ControlClick("NEVARIS 2019 Setup","","[CLASS:Button; Title:Weiter]")

Can someone assist and has an idea what ive to use for Controlclick?

thanks in advanced!



Link to post
Share on other sites

*** Detailed properties of the highlighted element ***
UIA_title:= <Weiter>
UIA_text:= <Weiter>
UIA_regexptitle:= <Weiter>
UIA_class:= <Button>
UIA_regexpclass:= <Button>
UIA_iaccessiblechildId:= <0>
UIA_id:= <btnWeiter>
UIA_handle:= <0>
UIA_RuntimeId:= <7;4480;42202994>
UIA_BoundingRectangle:= <1203;614;100;25>
UIA_ProcessId:= <4480>
UIA_ControlType:= <50000>
UIA_LocalizedControlType:= <Schaltfläche>
UIA_Name:= <Weiter>
UIA_AccessKey:= <W>
UIA_HasKeyboardFocus:= <True>
UIA_IsKeyboardFocusable:= <True>
UIA_IsEnabled:= <True>
UIA_AutomationId:= <btnWeiter>
UIA_ClassName:= <Button>
UIA_ClickablePoint:= <1253;626>
UIA_Culture:= <0>
UIA_IsControlElement:= <True>
UIA_IsContentElement:= <True>
UIA_IsPassword:= <False>
UIA_NativeWindowHandle:= <0>
UIA_IsOffscreen:= <False>
UIA_Orientation:= <0>
UIA_FrameworkId:= <WPF>
UIA_IsRequiredForForm:= <False>
UIA_IsDockPatternAvailable:= <False>
UIA_IsExpandCollapsePatternAvailable:= <False>
UIA_IsGridItemPatternAvailable:= <False>
UIA_IsGridPatternAvailable:= <False>
UIA_IsInvokePatternAvailable:= <True>
UIA_IsMultipleViewPatternAvailable:= <False>
UIA_IsRangeValuePatternAvailable:= <False>
UIA_IsScrollPatternAvailable:= <False>
UIA_IsScrollItemPatternAvailable:= <False>
UIA_IsSelectionItemPatternAvailable:= <False>
UIA_IsSelectionPatternAvailable:= <False>
UIA_IsTablePatternAvailable:= <False>
UIA_IsTableItemPatternAvailable:= <False>
UIA_IsTextPatternAvailable:= <False>
UIA_IsTogglePatternAvailable:= <False>
UIA_IsTransformPatternAvailable:= <False>
UIA_IsValuePatternAvailable:= <False>
UIA_IsWindowPatternAvailable:= <False>
UIA_ValueIsReadOnly:= <True>
UIA_RangeValueValue:= <0>
UIA_RangeValueIsReadOnly:= <True>
UIA_RangeValueMinimum:= <0>
UIA_RangeValueMaximum:= <0>
UIA_RangeValueLargeChange:= <0>
UIA_RangeValueSmallChange:= <0>
UIA_ScrollHorizontalScrollPercent:= <0>
UIA_ScrollHorizontalViewSize:= <100>
UIA_ScrollVerticalScrollPercent:= <0>
UIA_ScrollVerticalViewSize:= <100>
UIA_ScrollHorizontallyScrollable:= <False>
UIA_ScrollVerticallyScrollable:= <False>
UIA_SelectionCanSelectMultiple:= <False>
UIA_SelectionIsSelectionRequired:= <False>
UIA_GridRowCount:= <0>
UIA_GridColumnCount:= <0>
UIA_GridItemRow:= <0>
UIA_GridItemColumn:= <0>
UIA_GridItemRowSpan:= <1>
UIA_GridItemColumnSpan:= <1>
UIA_DockDockPosition:= <5>
UIA_ExpandCollapseExpandCollapseState:= <3>
UIA_MultipleViewCurrentView:= <0>
UIA_WindowCanMaximize:= <False>
UIA_WindowCanMinimize:= <False>
UIA_WindowWindowVisualState:= <0>
UIA_WindowWindowInteractionState:= <0>
UIA_WindowIsModal:= <False>
UIA_WindowIsTopmost:= <False>
UIA_SelectionItemIsSelected:= <False>
UIA_TableRowOrColumnMajor:= <2>
UIA_ToggleToggleState:= <2>
UIA_TransformCanMove:= <False>
UIA_TransformCanResize:= <False>
UIA_TransformCanRotate:= <False>
UIA_IsLegacyIAccessiblePatternAvailable:= <True>
UIA_LegacyIAccessibleChildId:= <0>
UIA_LegacyIAccessibleName:= <Weiter>
UIA_LegacyIAccessibleRole:= <43>
UIA_LegacyIAccessibleState:= <1048580>
UIA_LegacyIAccessibleKeyboardShortcut:= <W>
UIA_LegacyIAccessibleDefaultAction:= <Drücken>
UIA_IsDataValidForForm:= <False>
UIA_ProviderDescription:= <[pid:4480,providerId:0x0 Main(parent link):Unidentified Provider (managed:MS.Internal.Automation.ElementProxy, PresentationCore, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35)]>
UIA_IsItemContainerPatternAvailable:= <False>
UIA_IsVirtualizedItemPatternAvailable:= <False>
UIA_IsSynchronizedInputPatternAvailable:= <True>


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...