View Single Post
Old 01-30-2023, 01:21 PM   #491
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,743
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by philm View Post
I'd need to count selected words. I didn't find a way to do it with existing functions and plugins.
Unfortunately, there are no API functions for detecting the cursor position or selected text.
As a workaround, you could copy selected text to the clipboard, read the clipboard contents with Python and then count the words.
Doitsu is offline   Reply With Quote