capture text from applications


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users capture text from applications
# 1  
Old 01-30-2009
capture text from applications

i want to capture all text appearing on the screen, ie whatever the user is typing or whatever text contained in the application the user opens...
how to do that... can anyone guide me plz...

one solution is to hook the XDrawString library , but by doing that we are able to get the text from only console and Xedit edtor. If we open mozilla or any other application, its not working... any idea on how to proceed?
# 2  
Old 01-30-2009
Do you want it to just take a series of graphical snapshots, or somehow reach in and grab the actual rawtext data from the application? The latter might be a pretty tall order given these are graphical applications. Snapshots can be taken with the xsnap tool.
# 3  
Old 01-30-2009
If you're talking about a shell session (tty or pty), then man script

(I don't think that's what you're talking about, but from the subject line this is just here for those who search on it)
# 4  
Old 01-31-2009
Quote:
Originally Posted by Corona688
Do you want it to just take a series of graphical snapshots, or somehow reach in and grab the actual rawtext data from the application? The latter might be a pretty tall order given these are graphical applications. Snapshots can be taken with the xsnap tool.
I want to grab the actual text displayed on the application. THere are few functions which the apllications calls before displaying the text.. like for eg: there is a function XDrawString present in Xlib which is called every time user types in it. i hooked that function and was able to capture what ever user did on that editor... but now if i open Mozilla, that function is not gettin called at all.. ie it is using some other libraries...if u can throw some light on this plz....
# 5  
Old 02-01-2009
I believe mozilla uses the freetype library in most cases... But no program is obliged to draw text in exactly the way you want. Even if you manage to intercept the text-drawing libraries of each and every program on your system you may find that it doesn't draw text in the right order to make sense when captured, or might render individual glyphs only once then draw the rest just by placing bitmaps, etc. Graphics is not console and will not behave like one.
# 6  
Old 02-02-2009
Quote:
Originally Posted by Corona688
I believe mozilla uses the freetype library in most cases... But no program is obliged to draw text in exactly the way you want. Even if you manage to intercept the text-drawing libraries of each and every program on your system you may find that it doesn't draw text in the right order to make sense when captured, or might render individual glyphs only once then draw the rest just by placing bitmaps, etc. Graphics is not console and will not behave like one.
Actually on Linux, while using Mozilla, XdrawString is getting called. But now i was tying that on Xandros Flavour, and that function was not gettin called. ie it is using some different libraries.
how can solve this problem... ay feasible solution u can think of or any other approach?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Starting Applications With X

So, I wanted to see if I could just use X without a desktop. I installed Debian from a netinstall on a vm and installed xorg with apt. Logged in as a normal user with startx and had a big black background. Seemed like everything was working as expected, so I went to configure tint2 at start up. I... (3 Replies)
Discussion started by: Azrael
3 Replies

2. Shell Programming and Scripting

GUI Applications

Hi Experts, Can anyone suggest me kindly, whether designing some small GUI applications are possible in shell scripting..... Like a small calculator kind of stuff....... I fit is possible guide me with some examples. Thanks, Newbie....... (0 Replies)
Discussion started by: kritibalu
0 Replies

3. Shell Programming and Scripting

Need to capture certain text from a string in a different file

Hi, I wanted to know how i could accomplish this in a script using ksh. Lets say there is a file called test.dat and it has a certain input like below : . . Hi = 56 Hi = 67 . . 1 record(s) selected Now i need to capture the numbers after the = sign and store them in a... (3 Replies)
Discussion started by: Siddarth
3 Replies

4. Linux

Portable Applications

Hello Im stuck with a project on converting existing applications in to their portable versions, What i mean is that i want an application to run on a Linux OS without the need of actually installing the application on that machine. My preffered OS is fedora as it is used on most machines in my... (1 Reply)
Discussion started by: engineeringme
1 Replies

5. Shell Programming and Scripting

Scripting with applications

Hi, I am developing a script that invokes a program, and that program is going to prompt for some input every now and then based on some parameters. My script shall provide input to the program, automatically, by processing the text output by the program.. say.. when the program asks ... (3 Replies)
Discussion started by: icecoldaswin
3 Replies

6. UNIX for Advanced & Expert Users

Usernames across Applications

Hello everyone, I was just wondering if there was a way to make it so that usernames could be used across applications. For instance, I have a server that has a bunch of users. I want these users to have ways of accessing my database as well as a variety of other programs, but I don't want them... (2 Replies)
Discussion started by: gonzofish
2 Replies

7. Shell Programming and Scripting

transiest applications

i have to write a script that which would send mails For all the transient apps 1. How many apps are running 2. Since when is the app running plz help me in this............... plz help me, its urgent,................. plzzzzzzzzzzzzzzzzzzzzzzzzzzz (2 Replies)
Discussion started by: ali560045
2 Replies

8. UNIX for Advanced & Expert Users

Publishing X applications

Hi all, I have some UNIX servers (all flavor to be honest: SOLARIS, AIX, HP-UX) running some applications. I would like to publish these applications to remote client mainly running Windows XP. I know i can remotely access the desktop thanks to Cygwin,Hummingbird EXCEED... But I don't... (2 Replies)
Discussion started by: Platinium
2 Replies

9. UNIX for Dummies Questions & Answers

X applications

I am an Oracle DBA who has previously worked only on NT machines. I need to install Oracle on an AIX box. This Unix server has only a CRT monitor. The Oracle installation REQUIRES a graphical means of seeing the Unix machine. I've been told that I should telnet from a PC that can display X... (2 Replies)
Discussion started by: jbrax
2 Replies
Login or Register to Ask a Question