I think SourceTree is written in .NET, the title/class/process info in Window Spy look like so:
SourceTree ahk_class HwndWrapper[SourceTree.exe;;75302d1d-4350-49ed-81e5-c98f7e7b3b2d] ahk_exe SourceTree.exe
No ClassNN values for any of the controls (mousing over things)
Nothing for Status Bar Text
Nothing for Visible Text
Nothing for All Text
The dialogs and windows of course aren't empty and the ID numbers change depending on which window is open.
Does anyone know of any way to get meaningful information from these ID's without resorting to reading pixels at particular points and/or using OCR?
.NET Windows
-
- Posts: 204
- Joined: 24 Jun 2015, 23:38
Re: .NET Windows
See if you can get the text via AccViewer, and if you can, then try using the Acc library to retrieve the text:
Acc library (MSAA) and AccViewer download links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=26201
Acc library (MSAA) and AccViewer download links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=26201
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
-
- Posts: 204
- Joined: 24 Jun 2015, 23:38
Re: .NET Windows
I have just been coming up to speed on using the AccViewer recently... I'll check that out and see if it finds anything.
I saw some of the other posts you had on executing the default action for Excel buttons... are there any other neat things you know of that can be done with it?
I saw some of the other posts you had on executing the default action for Excel buttons... are there any other neat things you know of that can be done with it?
Re: .NET Windows
Acc is generally read-only, as shown here:
IAccessible interface (Windows)
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
However accDoDefaultAction that you mentioned, is useful, also accSelect and setting accValue may be useful.
IAccessible interface (Windows)
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
However accDoDefaultAction that you mentioned, is useful, also accSelect and setting accValue may be useful.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: Chunjee, Google [Bot], ShatterCoder, SomeGuyFromEu and 153 guests