You are not logged in.

#1 2008-09-18 16:42:05

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

text buffer

Hi,

I am looking for a way of reading text buffer [in editors browser etc...] I can get too clipboard xclip & xsel but need a way to read what typed in

Is is possible in Bash or maybe Python ?

MrG

Last edited by Mr Green (2008-09-18 16:42:13)


Mr Green

Offline

#2 2008-09-18 20:43:02

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: text buffer

I don't think there's a toolkit independent way to do this; the various toolkits implement text widgets in different ways.

You might be able to use accessibility toolkits, but they can be hard to set up. They basically give you access to a program's widget tree, assuming the program is accessible, but not very much is standard in that field yet.  Have a look at pyatspi; I used it about a year ago and it did what I needed it to.

Dusty

Offline

Board footer

Powered by FluxBB