Sign in to follow this  
Followers 0
wisem2540

Cannot get Control information in Toolbar

11 posts in this topic

I tried this with no luck

The autoitwindow tool lists the name as "ToolStrip1" There are 2 buttons up there. SAVE and REFRESH. I do not see a way to isolate these buttons.

Share this post


Link to post
Share on other sites



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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Unfortunately it is blank....

Share this post


Link to post
Share on other sites

I even tried WINID....it didnt seem to give me anymore useful info than autoit

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

How can I use the text of the tooltips?

Share this post


Link to post
Share on other sites

Realative coords seem to work. Not as clean as I would like, but it does the job. Thank you

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites

You could try Yashieds "Control viewer", helped me a couple of times where the au3 infotool didnt work.

Share this post


Link to post
Share on other sites

That Tool is pretty amazing. I think it worked, I definitely see new info now. However, I havent actually put it into a script. Thank you SO much

Share this post


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
Sign in to follow this  
Followers 0