capture

How to know a video source (webcam) is available or not without creating capture window?

試著忘記壹切 提交于 2019-12-11 17:35:48
问题 It is quite tricky because I wanna to take the result as a sign for later process. If a window flashes, it would be weird to user. 回答1: (This is not an answer , just refreshing the question and adding some details:) Suppose you need to open a video capture driver (webcam) with code like this (delphi, but easy understandable): result:= SendMessage(hCapWnd, WM_CAP_DRIVER_CONNECT, FDriverNo, 0); It works fine, except when camera/webcam is busy (opened by another application, for example

how do python capture 302 redirect url

依然范特西╮ 提交于 2019-12-11 08:19:36
问题 i try to fetch data from web,but the page use a 302 redirect how can i use python to fetch the real url? 回答1: Have a look at chapter 11.7. Handling redirects from the Dive Into Python series. It explains your entire issue in quite a bit of detail, example code and all. 回答2: What are you currently using? Both urllib and urllib2 should handle it automatically: page = urllib.urlopen('http://mrozekma.com/302test.php') >>> print page.geturl() # This will show the redirected-to URL http://mrozekma

How to tell if mouse pointer icon changed

可紊 提交于 2019-12-11 05:43:03
问题 I'm writing a screen recording app for Windows in Delphi 7 and wish to know when the mouse pointer changes in my app (like from a normal pointer to a resize pointer, etc). Currently what I'm doing is painting the mouse pointer onto an in-memory bitmap everytime the mouse moves (and on a timer) and doing a pixel by pixel comparison of it with the last bitmap I painted. Though the comparision is fairly quick (about 2-5ms) because it's happening so often (every mouse move) it adds up. I figure

Printer Communication Capture

♀尐吖头ヾ 提交于 2019-12-11 04:05:26
问题 If I need to post this elsewhere let me know. We have some old software thats being re-written, that uses a printerdriver to a propriatery printer. I need to rewrite the software bypassing the print driver and go directly to the printer. I do have the specs for the printer communication, thats fine, but what Id like to do is monitor the communications to the printer to view its contents (from the existing software that Im re-writing) and compare it to the specs, and what I will be sending it

Which API can be used to _capture_ the mouse when moving OS X “Carbon” windows?

扶醉桌前 提交于 2019-12-11 04:03:21
问题 On request I have implemented support for moving an OS X window by dragging it using an area within the content part of the window, i.e replicating the drag and move functionality of the title bar but in another area. The problem I have yet to resolve is the fact that if the user drags the mouse quickly it can leave the window area and then no more mouse move events are received. On windows this type of problem can simply be fixed by calling the win32 method SetCapture(), what's the

How Do I get list of audio/video and capture devices in C#?

拜拜、爱过 提交于 2019-12-11 03:29:42
问题 I've spent the last two weeks searching everywhere trying to get even so much as a hint on how to do this. This is my first time asking, and trust me when I say that I do not like to ask for help. But I am at the end of my rope, all I can find is how to list available audio and video devices using someone else's Framework in C#. All I want to do is list the available audio and video devices connected to ones computer from within C# without any additional 3rd party Frameworks. If any of you

Capture global Audio Output in C++ (Portaudio)

自作多情 提交于 2019-12-11 03:06:35
问题 I have one question: Is there any possibillity to record the global Windows Output using Portaudio? I have read that you can change the input device to the actual output device but that's not working at all. So is there any other possibillity to record the output sound? I'd like to prefer using Portaudio but I'm not afraid to use other APIs. It should be a cross-platform API. Best Regards, Dennis 回答1: I believe that this can be done with WASAPI Loopback Recording PortAudio has a WASAPI back

Is it possible to capture the playing audio with Java?

蹲街弑〆低调 提交于 2019-12-11 01:56:20
问题 I was wondering if it's possible to capture playing audio on the audio output hardware with a simple Java program, and then write it to an outputstream for example. Is it? 回答1: If your desire is to record the output of all programs to a given audio device using a java app, like audiohijackpro, the short answer is no, this is not possible without native code. It is, in fact, quite difficult to do in any language. As far as I know, no platform makes this easy. On some environments, there is a

iOS remote virtual interface does not work

懵懂的女人 提交于 2019-12-11 01:37:26
问题 I want to capture the net traffic on my iPhone. So I followed the guid on the official site. Connect iOS device to the Mac via USB. $ rvictl -s UDID I saw the interface rvi0 via ifconfig -l. I used tcpdump to capture the packet: $ sudo tcpdump -i rvi0 -n tcpdump: WARNING: rvi0: That device doesn't support promiscuous mode (BIOCPROMISC: Operation not supported on socket) tcpdump: WARNING: rvi0: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode

Block keystrokes from a specific keyboard

风流意气都作罢 提交于 2019-12-10 23:47:11
问题 I would like to block all keystrokes that are coming from a specific keyboard (identified by its HID/Name, so its low level stuff I guess) before they reach the focused application. But I'm still using this disabled keyboard (I'm getting the keystrokes). I think I need an application's hook but I don't know how to do that. Maybe you can give me some useful link? Regards, EDIT: I think I need a low-level hook, because general hook (I mean hook all the existing window & threads) aren't