grab

Grab exclusively/release mouse in application (Windows, C++)

Hello. I have lost many hours trying to grab exclusively the mouse in my application and re-releasing it. Right now, I am grabbing it correctly : the mouse cursor disappears from screen and I can read its properties fine. However, I can't release it correctly! The mouse cursor reappears on screen but no other application is receiving a...

Screen grab of a window

Hi, I've been writing some code to do a screen grab of a window (in Windows). The code works fine, however prior to the screen grab I have to bring the window to the front that I want to capture and force a redraw. I force the redraw with InvalidateRect, I then have to pump some messages from the message loop in order for the WM_PAINT...

Capture sound output on mac

I am trying to port my screensaver from windows to mac and one of its features was reacting on system sound output. On windows it was easy using Direct Sound, but I can't find any example of capturing sound output on mac. Is it possible even possible without writing something like kernel extension? Using flash it is also very easy — it e...

Gtkmm - "Gdk::Window::pointer_grab" troubles

Hello, I am programming an FPS (First Person Shooter) game using "Gtkmm" as a window manager and I would like to do the "mouse-look". Therefore, I have to "grab" the mouse pointer to redirect all the mouse motion events to my application window. There seems to be three overloaded functions to do that job and I have chosen the simplest o...

Unable to receive grab event by using GRAB_EVENT_MASK?

I added an AWTEventListener to process grab event. So this listener just use sun.awt.SunToolkit.GRAB_EVENT_MASK mark. But This listener can not capture UngrabEvent. The tricky thing is, when a JComboBox popuped its menulist, it can capture this event. I use the following code for testing. Start the program, click on the empty area of the...

Grab SELECTED text on UITextView

Hello Everyone, How do I grab SELECTED/HIGHLIGHTED text on a UITextView. I already know how to do this on UIWebView using javascript. Now I am trying to figure it out for the UITextView. Thanks for your help. ...

X11: How do I REALLY grab the mouse pointer?

I've implemented a horizontal splitter widget in Xlib. I'm trying to grab the mouse when the user clicks & drags on the splitter bar (so that the user can dynamically move the split & thus resize the windows on either side of the splitter bar). I've used XGrabPointer() after receiving a left click, in hopes that all future mouse motion...

how to Android audio OUT get work like mic in or line in?

so the idea is produce some analog data into phone via audio jack OUTPUT, so please, let me know the API function calls please! ...

Is there a way to get all text from the rendered page with JS?

Is there an (unobtrusive, to the user) way to get all the text in a page with Javascript? I could get the HTML, parse it, remove all tags, etc, but I'm wondering if there's a way to get the text from the alread rendered page. To clarify, I don't want to grab text from a selection, I want the entire page. Thank you! ...

grabing data from ajax request, is it possible?

When i need to get a content from a site, i use file_get_content() function, but now i need to grab a data, which loads after ajax request. so i can't mention the exactly url address. are there any algoritms to do such things? Thanks. ...

jQuery grab html

We have link to some page (with html code, on the same domain), that page have one img, which attributes title and alt are equal. Script must open link (no showing on the page), grab the src attribute of img which title=alt, and throw the value into some variable. Is it possible to do? Thanks. ...

How to use cURL to fetch text

I'm trying to grab/fetch text from another URL using cURL. The location of where I grab the text from is within a blank HTML document with dynamic (not static) data, therefore there are no HTML tags to filter. This is what I've got so far: $c = curl_init('http://url.com/dataid='.$_POST['username']); curl_setopt(CURLOPT_RETURNTRANSFER, t...

Invoke a MOUSE CLICK on a certain coordinate outside of my application

Hi all, I am using an application (a game actually) that requires me to join a "ROOM" to start a game. The application is a C++ application (I suppose) running on Windows. When a room is full, you need to wait 5 seconds to join again. I would like to automate this by writing a C# application that will invoke a MOUSE CLICK on a certain ...

How to 'Grab' content from another website.

A friend has asked me this, and I couldn't answer. He asked: I am making this site where you can archive your site... It works like this, you enter your site like, something.com and then our site grabs the content on that website like images, and all that and uploads it to our site. Then people can view an exact copy of the site at our...

PHP external page

Want to grab list of players from http://www.atpworldtour.com/Rankings/Singles.aspx There is a table with class "bioTableAlt", we have to grab all the <tr> after the first one (class "bioTableHead"), which is used for table heading. Wanted content looks like: <tr class="oddRow"> <td>2</td> <td> <a href="/Tennis/Players/Top-Players...

Get data from flash object, is it possible?

I use curl for grabing data from sites, but now i need to grab content from flash objects. i haven't any experience in flash, so could you tell me is it possible in general? if yes, what i need to learn for it? Thanks ...

jQuery: getting/parsing content from different sites

Hi all, I'd like to do the following: grab news from several sites, parse their content using jQuery selectors and show them on one page. How could this be done with jQuery? Thanks. ...

PHP script to grab entire line

Hi there, Thank you for taking the time to read this and I will appreciate every single response no mater the quality of content. :) I'm trying to create a php script which searches a text file for specific text. A person types in the specific text within a HTML form and the php script should search for that specific text within the te...

PHP to search text document (.txt), grab entire line and the line number

Hi there, Thank you for taking the time to read this and I will appreciate every single response no mater the quality of content. :) I'm trying to create a php script which searches a text file for specific text. A person types in the specific text within a HTML form and the php script should search for that specific text within the te...

Preventing screen grab within Delphi

Possible Duplicate: How can I prevent users from taking screenshots of my application window? So far I have be able to stop the Prt Sc key press and able to clear the clipboard so that my application cannot be screen grab. However as a test I tried used Corel PaintShop pro and an option it has is to import screen capture whic...