Jump to content

Read indexes of a SysHeader32 control


Go to solution Solved by jdelaney,

Recommended Posts

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.
 

 

Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

Link to comment
Share on other sites

  • Solution

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.
Link to comment
Share on other sites

Wow I overlooked that...

Thanks jd

Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

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