how to use cursor to grab strings from screen?