2

I want get active window text in mac OS x without x11.I want to use Carbon API.

mamady
  • 31
  • 4
  • definitely need image processing. Take screenshot and do image processing. No running app would ever give info like that. :P – Ravi Vooda May 07 '13 at 08:35
  • I understand you want to use Carbon as you are writing in C++, but if the "window" is implemented using Cocoa then I don't think Carbon can access the "window text" (by which I *think* you mean the Window Title?). – trojanfoe May 07 '13 at 08:35
  • yes I need Window Title.I can not use cocoa in c++. – mamady May 07 '13 at 08:42
  • Actually you can. Solution is Objective-C++. See my answer – cody May 07 '13 at 18:26

1 Answers1

1

You can't do it using Carbon. But you can do it using Objective-C++ and Cocoa. Just name your source file with .mm extension instead of .cpp and use any Objective-C frameworks. See this question for the details about window title

Community
  • 1
  • 1
cody
  • 3,233
  • 1
  • 22
  • 25