Capture text on windows/MacOSX