Jump to content

Cannot get Control information in Toolbar


 Share

Recommended Posts

Here is the window info.

>>>> Control <<<<

Class: WindowsForms10.window.8.app.0.2780b98

Instance: 97

ClassnameNN: WindowsForms10.window.8.app.0.2780b9897

Name: toolStrip1

Advanced (Class): [NAME:toolStrip1]

ID: 2425770

Text: toolStrip

Position: 0, 24

Size: 1600, 32

ControlClick Coords: 87, 15

Style: 0x56000000

ExStyle: 0x00010000

Handle: 0x002503AA

I thought about using Mouseclick and coords, but wouldnt that mess up the the resolution ever changed?

Link to comment
Share on other sites

Check the 'ToolBar' tab of the window info tool, while focused on the toolstrip.

If it is populated, you can send the controlid's to 'press' the control.

This works for toolbars, not sure about tool strips

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

well then...you can try the _GUICtrlToolbar functions, but doubt those will help as well.

Looks like you are stuck with relative coords, or hotkeys, or mouse moves, and get the text of the tooltips per coordinate

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

try this, where you need to define the PID of the window (your application) into variable= $iCallersWinPID

*called when the tooltip is visible

Local $i = 0

$sToolTipText = ""
While $sToolTipText = "" And $i < 1000
Local $aTipList = WinList("[CLASS:tooltips_class32]")
; See which belong to your app
For $j = 1 To $aTipList[0][0]
    If WinGetProcess($aTipList[$j][1]) = $iCallersWinPID Then
     ; See which one is active
     Local $aRet = _GUIToolTip_GetCurrentTool($aTipList[$j][1])
     ; If one is active then display it
     $sToolTipText = $aRet[8]
     If $sToolTipText <> "" Then ExitLoop
    EndIf
Next
Sleep(10)
$i += 1
WEnd
Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...