Jump to content

Recommended Posts

Posted

I've tried using
 

_GUICtrlHeader_GetItemText("[CLASS:SysHeader32; INSTANCE:1]", 0)

on a windows app, but it keeps returning an empty string. There should be at least 8 indexes to read from. I've tried 0-3 without any luck. Any ideas?

Note: the application window's class is WindowsForms10.Window.8.app.0.33c0d9d if that means anything. This is being done on an XP machine.
 

 

  Reveal hidden contents

 

  • Solution
Posted (edited)

try with a handle:

$hHeader = ControlGetHandle("window", "", "[CLASS:SysHeader32; INSTANCE:1]")
_GUICtrlHeader_GetItemText($hHeader, 0)

Parameters

$hWnd Handle to the control $iIndex Zero based item index

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.
Posted

Wow I overlooked that...

Thanks jd

  Reveal hidden contents

 

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...