Child gadget enumeration (Windows)

Share your advanced PureBasic knowledge/code with the community.
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Child gadget enumeration (Windows)

Post by Keya »

or Right-click in explorer -> Run As Administrator ? (but i didnt have to do that, just being logged in as admin was seemingly enough)
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Child gadget enumeration (Windows)

Post by Dude »

Keya wrote:actually my previous demo is working fine enumerating Calculator on my Win7-64, logged in as admin
I also have Win 7 with 64bit running, and doing it with admin rights doesn't work either. :(

Here's a thread with some more info, when I tried to get it working before:

http://www.purebasic.fr/english/viewtop ... 4&p=492111

I just want a way to programmatically "click" a button on a third-party window, like AutoHotKey can.
User avatar
blueb
Addict
Addict
Posts: 1044
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Child gadget enumeration (Windows)

Post by blueb »

Dude wrote:
...I just want a way to programmatically "click" a button on a third-party window, like AutoHotKey can.
You might search for: PureAutoIt.zip on http://www.rsbasic.de/backups/
- It was too lonely at the top.

System : PB 6.10 LTS (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
blueb
Addict
Addict
Posts: 1044
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Child gadget enumeration (Windows)

Post by blueb »

I don't understand... :?

It's no better or worse than using any of the included PureBasic LIB's.

(NOTE: "not" AutoIt)

"PureAutoIt" includes an object file (PureAutoIt*.obj which contains a few string functions, that you import into the PBI file)

You compile it into a stand-alone program that doesn't require the .obj file or a DLL such as AutoIt.


blueb
- It was too lonely at the top.

System : PB 6.10 LTS (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Child gadget enumeration (Windows)

Post by Dude »

Sorry, I deleted my post before you replied, because I initially misunderstood what you meant. :oops:
User avatar
Michael Vogel
Addict
Addict
Posts: 2678
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Child gadget enumeration (Windows)

Post by Michael Vogel »

I have some simple tools (AccExplorer, Spy++, UI Spy) which are showing many items I never could see in my enumerated list. Some children aren't listed and I also failed to write a program generating complete menu item lists (GetMenu, GetSubMenu).
Post Reply