a

Asked by BringMePi

a

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sergey Darovskih (darovskih) said :
#1

At the moment Sikuli can't recognize text, but authors promised to add OCR features https://answers.launchpad.net/sikuli/+question/98788. When they will do it, you will be able to pass text to GROWL.

Revision history for this message
Rumo (rumored) said :
#2

You could try using the caret browsing function(F7 in Firefox) or drag-and-drop to select the text, then copy it to the clipboard.. bit fiddly though..

Revision history for this message
gharabed (greg-harabedian) said :
#3

But how would you select and copy text into the buffer (ala Ctl-C in windows)? I don't necessarily want exact text, just the text in a particular location.

Revision history for this message
john_warren (jpwarren00) said :
#4

I've been using this little function for assigning clipboard contents to variables inside Sikuli on OSX. I'd probably feed the variable as a parameter for an AppleScript that talks to Growl (via osascript command).

def grabClipboard():
 import os
 (stdin,stdout) = os.popen4("pbpaste")
 results = stdout.read()
 return results

Revision history for this message
RaiMan (raimund-hocke) said :
#5

@ john

great tip. I love Mac ;-) did not know there are pbcopy and pbpaste. Thanks.

BTW: I found another command useful: qlmanage
It allows to produce a QuickLook window of some image file during script run.
(I think, we will get such a feature in Sikuli soon: showImage())

Can you help with this problem?

Provide an answer of your own, or ask BringMePi for more information if necessary.

To post a message you must log in.