Programming :: Grabbing Window Content Requires Drawable

Apr 9, 2010

I'd like to write a C/C++ program, that would grab content of window (in form of pixmap), which belongs to another application and do something with it. However, I ran into problems already at the beginning. In all toolkits I have searched through, I only found one function that claims to do what I want, namely XGetImage from Xlib. However, among other parameters like Display, coordinates, etc., it requires a Drawable. How do I specify a Drawable, that would correspond to the window I want to grab content of? Is there any easier way to achieve this?

View 2 Replies


ADVERTISEMENT

Programming :: Graphical Dialog From Bash Without Grabbing Focus

Jun 28, 2009

I want to display an un-intrusive graphical dialog to notify the workstation user that a bash script has finished running. It should be "top level", so visible to the user when it appears but should not grab focus, so the user can continue working in the current window and dismiss the notification when convenient. Researching gdialog, xdialog, xmessage and zenity it seems none of them can do this; they all grab focus.

View 3 Replies View Related

Ubuntu :: Window Title Bar Requires Metacity - Replace To Display After Logon

May 27, 2010

Running 10.04 64-bit. After logging on, the title bars around all the windows are missing. Adding "metacity --replace" as a startup command resolves the problem, but something's obviously wrong.

Doesn't occur on my other computer, so probably hardware related.

see attached checkbox-generated submission.xml.gz for hardware report.

View 7 Replies View Related

Ubuntu :: Do Not Show Window Content While Dragging

Apr 18, 2011

How can I set Ubuntu 10.10 not to show window contents while the window is being dragged?I just want to save a higher amount of system resources

View 4 Replies View Related

Ubuntu :: Access Content Of Window Hard Drive?

Sep 2, 2010

I installed Ubuntu within (along side) windows, But ubuntu is only showing me the 17GB that was dedicated to Ubuntu in My Computer. Is there a way to access everything on the hard drive even the stuff that's on the Windows 7 side?

View 3 Replies View Related

Ubuntu :: Java Application Opens Without Window Content

Oct 6, 2010

I"m running 10.04 on a netbook. I switched my Java look and feel to Nimbus and now my java application opens with most of the buttons and window content missing. The main menu is there, but otherwise the main form is mostly blank. If I restart the application (not my computer) 2-3 times, the problem is resolved until the next time I have to launch the java app. I did not see this issue before changing the look & feel setting for Java. But the GTK l&F doesn't work for other reasons, so I was forced to make a change.

I'm running compiz and I know the blank windows in Java apps was a common problem a while back. I'm not sure if what I'm seeing is related to that old problem or is something different.

View 2 Replies View Related

Ubuntu :: Window Content Not Updating / Troubleshoot Things?

May 1, 2011

Hello. I'm using natty with fglrx (installed via jockey) in a gnome classic session. Suddendly today, window contents started to not refreshing (for example when scrolling a window, or clicking on a link or switching tabs in firefox and chrome). What can I do to troubleshoot things?

View 1 Replies View Related

Programming :: Application Requires Later Glibc

May 10, 2011

My users need to run an application which was build with newer GLIBC_2.11, while my system only gets GLIBC_2.4. It shows error "cannot find libc.so.6 GLIBC_2.11" whenever I run it. I cannot upgrade the system, so I have tried building Glibc 2.11 (for example:/opt/glibc-2.11) to another directory, but when I point LD_LIBRARY_PATH to /opt/glibc-2.11, I cannot run any commands because of error invalid LFS ABI. I also tried using LD_PRELOAD, but it does not work. Please help me, how can I fix this problem.

View 3 Replies View Related

Programming :: Pipeline When The File Requires Two Command Line Args?

Jan 18, 2010

Suppose that there are two files

Code:
$ cat abc1
a1 a2

[code]...

View 4 Replies View Related

Programming :: Read Content From Net In Python?

Jan 7, 2011

i made a program to read from a specific site whats on tv in that day.My question is if some of you have an idee how can i figure it out,what are movies,what are sports,what are shows ?

View 3 Replies View Related

Programming :: C - Can't Print In Screen The Content Of File

Mar 20, 2010

why this code can't print in the while loop the content of the file ?

Code:

#include <stdio.h>
int main()
{
FILE *fp;

[code]...

View 7 Replies View Related

Programming :: (PHP) Dynamic Or Static Content Generation

May 12, 2011

My project looks like this:

Home
The Team [no-page]
-X
-Y
-Z
Projects [no-page]
-Coding [no-page]
--A
--B
--C
-Desing [no-page]
--E
--F
-Security [no-page]
--G
--H

Note: the Code/Design/Security projects pages (A,B,C,D...) will be at start around 35 pages, and will grow. My index.php is something like this:
PHP Code: .....

What I would like to know is how to build the content (the home-main.php)? Do it dynamically based on a link something like this index.php?page=coding_b, and put in the index.php page a number of 35 if/else statements to cover all the project pages or ... static, creating every page for the projects menu when I create the menu? I check if a page 'pro-co-a.php' exists, if not I create it based on some template and do the query to get the content from db or? How to organize the pages, if using static page?

View 5 Replies View Related

Programming :: Can't Access To Content Of Array In For Loop

Mar 7, 2010

When I deal with an array in a function I con not access to the content of array in a for loop, but out of a for loop I can access to them! for example

[code]...

In a function when I send as parameter, in a for loop it prints the content of array and out of a for loop it prints the address of arr[i]

View 5 Replies View Related

Programming :: Display Content Of Txt File In Xbmc?

Apr 25, 2011

go about developing this add-on. i am testing this on my xbmc-live set-up; i am fairly affluent in bash/ c but unfortunately i dont have experience with python.i trimmed the data using this bash 1-liner so the output looks like:

Code:
xbmc@XBMCLive:~$ wget -q --output-document=- www.google.com/movies | sed -n 3p | tr '<' "
" | egrep "(title_bar|id=link_1_theater|class=info|mid=|Rated|class=times|fandango)" | grep

[code]...

View 2 Replies View Related

Programming :: Unique The Content Within A String With Seperator?

May 17, 2011

I am green on linux script. I would like to perform the following operation:String a: 1,2,3,2,4,How to unique this string to become: 1,2,3,4,?

View 3 Replies View Related

Programming :: Use Echo To Display The Content Of A Variable?

Jan 4, 2010

I have a problem to use echo to display the content of a variable.

This is what I do:

Code:
#!/bin/bash
USAGE="Usage: name [OPTIONS] [DIRECTORIES]"
echo $USAGE

When I run this little script I get the following output:

Usage: name [OPTIONS] R

So I think that [DI might be some sort of escape sequence. But I do not know how to unescape it. Does anyone have a hint for me?

View 14 Replies View Related

General :: Find Will Go Through The Content Of Tarball As Well And List All Content

Oct 5, 2010

I am using find to search for .tgz files modified more than 7 days ago and delete them.find /directory/ -iname backup*.tgz -daystart -mtime +7 -exec rm -rf {} My problem is that find will go through the content of tarball as well and list all content. I want to only search main tarball and delete it if older than 7 days.

View 4 Replies View Related

Programming :: Iterate The Content Of A File In The Shell Script?

May 29, 2010

i need to check group of URLs and there https requests from browser. Recently i got some command line web browsers to know the HTTPS status of the URL like curl, wget etc... Now all of i need to do is write a shell script. I will put all my URLs in a text file and my shell script should read each URL one by one and log the status along with the corresponding URL.

Sample output:

./myscript.sh url.txt
1. site - 200 OK

View 6 Replies View Related

Programming :: Printing HTML Content As Plain Text?

Sep 16, 2009

My code perl code is as below.I want to print the contents of file "/dir/Myfile".But problem is that the file "Myfile" contains html content as below.

<TP_INFO> <Mail> </Mail> </TP_INFO>

So the IE treats it as HTML content and doesnt print the content present in the tags.Can any one help me to print HTML content as plain text?

sub PrintLog
{
print "Content-Type: text/plain
";

[code]....

View 4 Replies View Related

Programming :: Remove Many Lines Based On Content Of Other File

Jun 21, 2011

I a csv-file (A.csv) with a total of 4.600.000 lines. Thats to many and only a few is necessary. I have a txt-file with 150 lines (X.txt) (all lines is dataset from a mainframe and looks like abc.def.123.456. How do I remove lines from A.csv where none of the dataset from x.txt is present?

View 13 Replies View Related

Ubuntu :: Any Software For Grabbing The Video

Oct 3, 2010

is there any software for grabbing the videos even before it actually play back

View 2 Replies View Related

General :: Grabbing RE From String - Any Utility?

May 20, 2010

What's the best command to use to grab just a regular expression from some text input? I've got is some input is in the form:

<uninteresting><start-marker><good stuff><end-marker><uninteresting>

I can construct a RE to match <start-marker>.*<end-marker>, but is there a utility that would return *just* the <good stuff> I'm interested in? I realise that the alternative is something along the lines of:

Code:
cat <input-file> | awk -F'start-marker' 'print ${2}' | awk -F'end-marker' 'print ${1}'
but it would be better if I could do it all in one go.

View 5 Replies View Related

Programming :: Make Radiolist Dialog Which Content So Many Options What Is The Value Of The Variable?

Dec 14, 2010

How can I make radiolist dialog which content so many options what is the value of the variable?Quote:

echo "How many options?"
read=VAR
dialog --title "sdf" --backtitle "sdff" --radiolist "ffdsfsd" 15 60 5 "1" "first" on "2" "second" off "3" "third" off "4" "fourth" off etc..

I must explode dialog in loop and add options? or something like that?

View 2 Replies View Related

Programming :: How To Write Using Fwrite Without Affecting Existing Content Of File?

Oct 30, 2010

How can I write to a file multiple times using fwrite without affecting the previous writes?The method shown below accepts a file name, buffer and offset. The method opens the file in reading/writing mode and writes the content of the buffer at offset.

View 1 Replies View Related

Programming :: Lilypond Parser For Python - Typeset The Content Of File

Nov 12, 2009

I'm woring on a personal research project and would like to know if there are lilypond parsers for python available or I'll have to create my own. Just in case you are wondering: I don't need to typeset the content of the lilypond file, just understand what's written in the file (what notes, what duration, when in time to play each one, etc). [url]

View 1 Replies View Related

Programming :: Library Hat Could Download Content Of Web Page And Work On Windows ?

Jun 3, 2009

Finally I got a method to compile libcurl in Visual Studio 2005(as static library):

Following is the link: [url]

Quote:

I am thinking of using Libcurl static dll for it but it didn't work on Windows so far.

I am looking for something simple and could be quick to embedded to my program with Visual C++.

View 3 Replies View Related

General :: Dividing Content Of One File By Content Of Another?

Apr 12, 2011

If you have the value 100 in File1 and the value 5 in File2, how do you write a script to divide the 100 in File1 by the 5 in File2 in Linux Bash Shell?The operating system I am using is Ubuntu 10 and object is to write a script to accomplish this task.

View 5 Replies View Related

Ubuntu :: Grabbing Edge Of Windows When Resizing

Aug 17, 2010

I've got a basic install (i.e., nothing fancy, no compwiz or whatever) of 10.4 (64 bit) on my computer, running gnome desktop. I find it very difficult to "grab" the edge of a window, when I want to resize it longer or wider and frequently I just wind up selecting the window below it when I try to drag it wider or longer. Is there a way to increase the border area in which that arrow-pointing-to-edge (as opposed to the usual cursor) appears to make it easier to grab the damn thing?

View 2 Replies View Related

Ubuntu :: Script - Grabbing Variables From Output

Jun 9, 2011

I want to be able to grab some text from a directory listing in a bash script, and then apply that text to future commands in the same script. For instance, say I do "ls -lais /media/Movies" and get:

2147560409 712544 -rwxr-x--- 1 root users 729645056 1999-03-07 11:45 Young Guns (1987).avi
2147560410 712400 -rwxr-x--- 1 root users 729497600 2002-01-09 01:11 Young Guns II (1990).avi

Then say I want to grab the year from this output and then use that information as part of the command to modify the file timestamp, such as:

touch "Young Guns (1987).avi" -t 198701011200
touch "Young Guns II (1990).avi" -t 199001011200

So that the result of ls -lais is:

2147560409 712544 -rwxr-x--- 1 root users 729645056 1987-01-01 12:00 Young Guns (1987).avi
2147560410 712400 -rwxr-x--- 1 root users 729497600 1990-01-01 12:00 Young Guns II (1990).avi

Anyway, that's just one example, but I often find myself needing to do this type of thing, and I'm sure its possible, just not really done enough scripting recently to know how to do it.

View 5 Replies View Related

General :: Grabbing TTY Output From Remote Machine

Mar 24, 2011

Here's the scenario, rsync is running in RMT on tty2. I (LCL) am connected to RMT remotely as root over ssh. Is it possible to grab output of RMT's tty2 on my LCL? I don't want to redirect RMT's tty2 out to my pts, just get a mirror output.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved