Quantcast
Channel: VBForums - API
Viewing all articles
Browse latest Browse all 168

how to read things inside any window

$
0
0
I'd like to know how to read buttons or body text from some child window.
I already found the window handle ;)
Code:

    winHandle = FindWindow("XLMAIN", Application.caption)
    winHandle = FindWindowEx(winHandle, 0, "EXCEL2", "")
    winHandle = FindWindowEx(winHandle, 0, "MsoCommandBar", "Office Clipboard")
    winHandle = FindWindowEx(winHandle, 0, "MsoWorkPane", vbNullString)
    winHandle = FindWindowEx(winHandle, 0, "bosa_sdm_XL9", "Collect and Paste 2.0")

I couldn't find is in VBA forums, so maybe I can get something out of VB...
It's the clipboard-window I'd like to read to capture the cut-addresses:
Name:  excel 2010 clipboard.JPG
Views: 106
Size:  41.5 KB
Attached Images
 

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>