Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Form Capture Problem


I tried many examples of Form Capturing in this forum. But seen that it captures only the viewable portion of the form, and not the portion which is not displaying on the computer screen or which behind the other window.
Is there any way to capture all containt of window irrespective whether it displaying on screen or not.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Capture The Integrality Of A Form To Affect It To An Other Form's PictureBox ?
HI !
How to capture the integrality of a form to affect it to an other form's pictureBox ?
Thanks !

Capture My Form
how can i capture my form that displays a video and save it to an avi!!!

How I Can Capture My Form
I've got a webbrowser1 in my form and I need to capture only part of the webpage displayed.
i want select this part by pixls x and y

any one help me

Capture Form
Hi friends Does anyone know how to Capture a form to a Image.... thanks

Form Key Capture?
I have a button on a form that saves some user input, and then makes a label invisible.

If, instead of clicking the button, I use the keyboard shortcut keys, 'Alt & S', it is saved but the label is not invisible.

How do I code for this?
Is it with the form keypress property?
If so, how do I check for two keys at the same time?

Thanks

Capture From Specified Portion Of The Form.
Hi,

I have looked around the internet and found the following code which captures the screen, and puts into a imagebox.

I have read through the code, but can't seem to find where / if you can specify a certain section on the form to capture only.

Example, say if I wanted to capture the following part of a form, and put it into an imagebox on another form.

First corner (top left) is 4560 from the top, and 240 from the left
Oppisite corner (bottom right) is 5895 from the top, and 8295

I hope that makes sense... many thanks for your help.


Code:

Const RC_PALETTE As Long = &H100
Const SIZEPALETTE As Long = 104
Const RASTERCAPS As Long = 38
Private Type PALETTEENTRY
peRed As Byte
peGreen As Byte
peBlue As Byte
peFlags As Byte
End Type
Private Type LOGPALETTE
palVersion As Integer
palNumEntries As Integer
palPalEntry(255) As PALETTEENTRY ' Enough for 256 colors
End Type
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(7) As Byte
End Type
Private Type PicBmp
Size As Long
Type As Long
hBmp As Long
hPal As Long
Reserved As Long
End Type
Private Declare Function OleCreatePictureIndirect Lib "olepro32.dll" (PicDesc As PicBmp, RefIID As GUID, ByVal fPictureOwnsHandle As Long, IPic As IPicture) As Long
Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal iCapabilitiy As Long) As Long
Private Declare Function GetSystemPaletteEntries Lib "gdi32" (ByVal hdc As Long, ByVal wStartIndex As Long, ByVal wNumEntries As Long, lpPaletteEntries As PALETTEENTRY) As Long
Private Declare Function CreatePalette Lib "gdi32" (lpLogPalette As LOGPALETTE) As Long
Private Declare Function SelectPalette Lib "gdi32" (ByVal hdc As Long, ByVal hPalette As Long, ByVal bForceBackground As Long) As Long
Private Declare Function RealizePalette Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Function CreateBitmapPicture(ByVal hBmp As Long, ByVal hPal As Long) As Picture
Dim R As Long, Pic As PicBmp, IPic As IPicture, IID_IDispatch As GUID

'Fill GUID info
With IID_IDispatch
.Data1 = &H20400
.Data4(0) = &HC0
.Data4(7) = &H46
End With

'Fill picture info
With Pic
.Size = Len(Pic) ' Length of structure
.Type = vbPicTypeBitmap ' Type of Picture (bitmap)
.hBmp = hBmp ' Handle to bitmap
.hPal = hPal ' Handle to palette (may be null)
End With

'Create the picture
R = OleCreatePictureIndirect(Pic, IID_IDispatch, 1, IPic)

'Return the new picture
Set CreateBitmapPicture = IPic
End Function
Function hDCToPicture(ByVal hDCSrc As Long, ByVal LeftSrc As Long, ByVal TopSrc As Long, ByVal WidthSrc As Long, ByVal HeightSrc As Long) As Picture
Dim hDCMemory As Long, hBmp As Long, hBmpPrev As Long, R As Long
Dim hPal As Long, hPalPrev As Long, RasterCapsScrn As Long, HasPaletteScrn As Long
Dim PaletteSizeScrn As Long, LogPal As LOGPALETTE

'Create a compatible device context
hDCMemory = CreateCompatibleDC(hDCSrc)
'Create a compatible bitmap
hBmp = CreateCompatibleBitmap(hDCSrc, WidthSrc, HeightSrc)
'Select the compatible bitmap into our compatible device context
hBmpPrev = SelectObject(hDCMemory, hBmp)

'Raster capabilities?
RasterCapsScrn = GetDeviceCaps(hDCSrc, RASTERCAPS) ' Raster
'Does our picture use a palette?
HasPaletteScrn = RasterCapsScrn And RC_PALETTE ' Palette
'What's the size of that palette?
PaletteSizeScrn = GetDeviceCaps(hDCSrc, SIZEPALETTE) ' Size of

If HasPaletteScrn And (PaletteSizeScrn = 256) Then
'Set the palette version
LogPal.palVersion = &H300
'Number of palette entries
LogPal.palNumEntries = 256
'Retrieve the system palette entries
R = GetSystemPaletteEntries(hDCSrc, 0, 256, LogPal.palPalEntry(0))
'Create the palette
hPal = CreatePalette(LogPal)
'Select the palette
hPalPrev = SelectPalette(hDCMemory, hPal, 0)
'Realize the palette
R = RealizePalette(hDCMemory)
End If

'Copy the source image to our compatible device context
R = BitBlt(hDCMemory, 0, 0, WidthSrc, HeightSrc, hDCSrc, LeftSrc, TopSrc, vbSrcCopy)

'Restore the old bitmap
hBmp = SelectObject(hDCMemory, hBmpPrev)

If HasPaletteScrn And (PaletteSizeScrn = 256) Then
'Select the palette
hPal = SelectPalette(hDCMemory, hPalPrev, 0)
End If

'Delete our memory DC
R = DeleteDC(hDCMemory)

Set hDCToPicture = CreateBitmapPicture(hBmp, hPal)
End Function
Private Sub Form_Load()
'KPD-Team 1999
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
'Create a picture object from the screen
Form1.Image1 = hDCToPicture(GetDC(0), 0, 0, Screen.Width / Screen.TwipsPerPixelX, Screen.Height / Screen.TwipsPerPixelY)

End Sub

How To Capture If The Form Is Minimized
i want to hide my form if it is minimized, so how should i capture the minimization of the form

Capture Form Directly To JPG
Hiya Peeps,
Is there anyway to Capture my Form to JPG format without making a BMP first?

I have tried some of the programs on this site but I am having trouble removing all the unecessary code. I managed to get it to work (in my program) capturing to BMP, but it produces a file that is too big to email to people.

Capture Unload Form
Hello,

I need to include an "Are you sure you want to exit" dialog box on a small app. I've added this simple code to my Exit menu item:


Code:
Private Sub mnuExit_Click()

If MsgBox("Are you sure you want to exit?", vbQuestion + vbYesNo, "Exit?") = vbYes Then
Unload Me
End If

End Sub


BUT if the user clicks the x button in the top right-hand corner - it just quits. How can I get round that? I've tried putting something similar to above in the unload sub but it still unloads

Any ideas?

Thanks

Simon

Capture Form & Put Into RTF File (GOT IT)
I'm an experienced VB programmer, but now need to do something I have no idea how to do, which is capture a form and save it in (or as) an RTF file.

I can accomplish exactly what I want from the desktop by (1) giving the form the focus and then (2) doing alt-printscreen to capture it, then (3) saving it into a fresh Wordpad and then (4) saving the wordpad as an RTF file.

I'd like to accomplish the equivalent from code at runtime.

Any help will be appreciated, as I have not a clue how to go about this.

Capture The Mouse In A Form
Can anybody tell me how to capture the mouse in a form so that it can not go out of it. I mean, I want the mouse to be capable of moving within the form.
I know it can be done this, because I've already seen it. The problem is that I can't remember how, and can't find it either.

Capture The Picture Of My Form
capture a picture of my active form that can be put into a picture box?

Thanks all

Wengang

Capture Form As Bitmap
Hey Guys ,

Anyone know how I can capture a form as a bitmap in code ?

Thanks ,

[]P

Capture Form Image
I am tring to capture the image of a form that wont fit on the screen. I looked around but just can't find code for this. I can capture the whole screen, the visible part of a form and so on. Can I have the form paint itself to the clipboard ? Or capture the image in the browser that wont fit on the screen, I would like to add a quick print to my web browser. I use dialup so waiting for some sites to print sucks.

Capture Form Picture (How Can Help Me?)
Hi all

One of the biggest parts of my work is creating form for data manipulating of SqlServers tables.

Reading data from tables
Writing data into tables
Filtering data of tables
And etc

Creating form for this purpose is boring especially when you have to create this form for several tables.
I create a wizard that; its work is help to me for coding with that purpose.
I introduce a table or a set of fields from several tables to my wizard and it creates a vb form and module with required codes and controls.
I want use from this wizard to documentation of my code.
For do this I have only one problem. I cannot capture of form pictutre from frm (text) file.
Everybody can help me?




Edited by - FarzinSotoodi1349 on 5/17/2006 2:05:30 AM

Capture The Form As An Image??
I have a form that is populated with graphically important data. I want to capture the forms screen shot and export it to any window picture format(.bmp,.png,.jpg). Is this possiable programmically? Any help great!!!


Raistlin

How Can I Capture The X-out Button On A Form?
say a user X-out's of my application.. does that call a function then? or can I make it call a function so I can do cleanup before the program exits?

Thanks!

Capture Hidden Or Minimized Form.
Since two days I'm trying to find out...

How can I capture a window that is not on top or active ?
I don't want to bring it on top before doing capture.
BitBlt only works when nothin's on top of the specified hWnd...

I might have to use WM_PAINT property but I don't know how.

Is there a way to access memory with a hWnd variable and copy the bitmap value to another control like picturebox.

I need urgent reply, since I just lost 48 hrs... searching still !

Thanks

Capture Maximize Form Event
I am learning to write form variables to the registry to be called the next time the program is run. I am saving the top, height, left, width variables and then set them on the form load event when the program runs again. I have found that when I maximize the form, quit and then restart, the form has the slightly smaller size then the maximized form and is not in the maximized mode. For Example, at this point pressing the maximize button causes the form to maximize completely. I would like to store whether or not the form was maximized when I close the program and then maximize the form the next time it runs. Any ideas on maximize or a better way of retrieving these variables will be appreciated.

1 Form 1 Textbox To Capture 8 Entries
I am re-writing a check register I originally wrote in Basic PDS 7.1
I am 1/2 thru the re-write but I have a small problem
What I'm trying to do is This:

The opening screen will be filled with transactions all ready entered(This is a Check Register Program that I'm trying to re-write as a windows program)This is already done.

At the bottom it will have Printed The question Enter Check Number.Besides That will be a Textbox.The person will type in the number and then press enter. This procedure will be repeated approx 8 times.
The For next loop should be able to display a new question and catch the new answer!

After the last question a Message box will appear asking if you wish to save info. I think the rest would be apparent.

Then the number will be put in a Type End type Data Holder and written to screen

My problem is I can't seem to get info from the keydown event and use the enter key to seperate each answer, I guess is what I'm trying to say.

Capture / Know When Mouse Leaves Form
How can I tell when the mouse leaves the form?

I want to have my form "slide" back off the screen when the mouse leaves it.

I am currently using a timer.. "resetting" it when then mouse_move event occurs.. but there must be a better way?

maybe when the focus changes to another app or startbar etc...?
how to capture that??
Thanks!

Capture Screen Behind A Form (Resolved)
I'm trying to capture as piece of the screen behind my form.
Then the captured pic is placed on my form so that it looks 'see through'.

I don't mind moving or hiding the form, but it's not working right.

Steps:
1. capturer a piece of screen to picBack.
2. Copy it to picText then print text over it.
3. Alpha Blend the two pics to picBlend.
4. Copy the blended pic to the form.

All picture boxes and the form are set to AutoRedraw.

The code is called from a loop so that the background gets updated.

My code sort of works.
If I F8(one-step) until the form is hidden or moved, it works fine.
Here's a pic of how it should go.

Good capture pic:

Notice that picBack only shows the screen behind the top left corner of the form.


But when I let the program run at full speed it starts capturing an image of that section of my form.
Bad capture pic.


Here's some of my code.
The commented lines are some of the things I've tried, like moving my form or setting a delay to let the form hide before the capture is made.


VB Code:
Me.Visible = FalseStop 'it works in the IDE if I leave this 'Stop' and use F8     'It fails it I remove the 'Stop'     '    Do While Me.Visible'        Sleep (10)'    Loop    Me.Move m_tTruePos.Y, m_tTruePos.X 'The postion seen in the screen shots ' Here I tried temp moving the form out of the way'    lTop = Me.Top'    lLeft = Me.Left'    Me.Move g_tScreenSize.Y, g_tScreenSize.X 'move the form off screen''    Me.Refresh'    Sleep 500 ' give a little time for the screen to clear    ScreenCapture picBack, Me.Top / 15, Me.Left / 15, picText.Height, picText.Width'    ScreenCapture picBack, lTop / 15, lLeft / 15, picText.Height, picText.Width'    Me.Move m_tTruePos.Y, m_tTruePos.XMe.Visible = True    Me.Picture = picBack.Picture    picText.Picture = picBack.Image    '......    Public Sub ScreenCapture(PicObj As Object, lTop As Long, lLeft As Long, lHeight As Long, lWidth As Long)'Captures part of desktop'   PicObj: Any object type that has a DC and can hold a picture    Dim lDeskhWnd As Long    Dim lDeskDC As Long    Dim lForeHwnd As Long        'These didn't help    'lForeHwnd = GetForegroundWindow    'SysSetFocus (lForeHwnd)        lDeskhWnd = GetDesktopWindow()    lDeskDC = GetDC(lDeskhWnd&)    PicObj.Cls    PicObj.Picture = Nothing    PicObj.Width = lWidth    PicObj.Height = lHeight        BitBlt PicObj.hdc, 0&, 0&, lWidth, lHeight, lDeskDC, lLeft, lTop, SRCCOPY    ReleaseDC lDeskhWnd, lDeskDC    PicObj.Picture = PicObj.ImageEnd Sub

Capture Form Data From Webpage
Hello,

At my work they used a web based system to submit expenses. They all enter into System A. At the end of the month, we get a report from system A saying these expenses went through. The problem is there is no 1 to 1 correlation between what is submitted into the system and what is processed each month.

Generally, the person who inputs the expenses each month keeps a separate excel spreadsheet, with the status of each bill. At the end of the month, we compare report from system A with the excel sheet the data inputter keeps. (Noting that even though bill 100 went into system A in january, it was not processed in january, but february)

We deal with 100's of bills a month, so the excel method of comparing the lag time between the bill being entered into the system and the bill being processed by the system is becoming unwieldy.

So basically, we want to capture the data as it is entered into the web system. The program would read all of the form elements on the page, take the data, and save it to a DB when "submit" or "enter" is pressed.

How do I monitor the form elements of a web page with an external program and how do I monitor the events on that webpage (pressing submit for example)? I know this is possible, but have yet to find the correct code snippet. IE 6 is used.

Thoughts?

Screen Capture Of Hidden Form
Hi All,

Is it possible to do/get a Screen Capture of a Hidden Window i.e. not
visible to the user ??

Thanks in advance



Ockert Diedericks

AVI Frame Capture When The Form Is Not Visible
Hello,

I spent some hours but I didn't get on solving the problem,
howto capture avi frames directly into a picturebox :

please visit :
http://www.gwebspace.de/dynamo1/vb/myFrameCallback_for_ezVidCap_Ocx.htm

Someone who can get the code to work ?


ezvidcap.ocx (Download) :
==========================
http://www.shrinkwrapvb.com/ezvidcap.zip
121 KB

Capture Current Form As An Image In VB6
This must be really easy to do(!) but I just cant get it to work!!

I want to grab the current active visible form (a regular VB form I've created), controls and all, as an image so I can shove it in a picture box an another form.

I've found lots of code for grabbing the entire desktop, but I dont want it all and I'm getting tangled in knots trying to select only my form's part of the desktop. So I figure there must be a way to grab only the current form?

I've tried using "StretchBlt" but cant get the parameters right!

Any help would be really appreciated!!!

Capture Enter Key Press Over Whole Form
Hello,

I have a form that has command buttons on it. I want to capture when the enter key is pressed. I can capture when any other key is pressed because I've set the "KeyPreview" property on the form to True. However, it seems command buttons don't fire the KeyPressed event when they have focus and the enter key is pressed, so this can't get forwareded to the form keypress handler.

Is there anyway to detect when the enter key is pressed on a form, regardless of whether a button has focus or not?

Thanks,

Cheyney

1 Form 1 Textbox To Capture Many Different Entries?
I am re-writing a check register I originally wrote in Basic PDS 7.1
I am 1/2 thru the re-write but I have a small problem
What I'm trying to do is This:

The opening screen will be filled with transactions all ready entered(This is a Check Register Program that I'm trying to re-write as a windows program)This is already done.

At the bottom it will have Printed The question Enter Check Number.Besides That will be a Textbox.The person will type in the number and then press enter. This procedure will be repeated approx 8 times.
The For next loop should be able to display a new question and catch the new answer!

After the last question a Message box will appear asking if you wish to save info. I think the rest would be apparent.

Then the number will be put in a Type End type Data Holder and written to screen

My problem is I can't seem to get info from the keydown event and use the enter key to seperate each answer, I guess is what I'm trying to say.

How To Capture The Form In VB And Save As JPEG, BMP?
i just want to know how to capture the form in VB and save as JPEG, BMP. kindly help.



Edited by - edd_hills on 2/24/2005 7:34:51 PM

How To Capture Screen In The Form Of Image
hi
i want to give sepecific coordinates of screen and as a result the part of screen containing these coordinates saves into a Bmp file.
how can i do it.

thanx
Alexen

How To Capture The Move Event Of A Form
Hi,
I want to capture the move event of a form.Ie I want to know the new left and right cordinate of my form. I am not looking for a timer.I want to capture the wm_move message or any other simple method..
Thanks in advance
Sreeju

Screen Capture - Hiding The App Form?
I have created a screen capture utility, but I have one little problem. It captures the application window as well.

I'm trying to make it HIDE before the capture takes place.
The FORM.HIDE still allows for partial captures of the screen.

I think I need to REFRESH my Desktop AFTER hiding the form and BEFORE I Capture the desktop.



Now... Does anyone know how this can be done?
I'm pretty sure there is an API out there or something someone can point me too.

Keep in mind how to capture is not the issue.
It is doing it without the form appearing in the capture.

Thanks!

How Do I Capture When My Form Size Is Changed?
Is a function called when the form size is changed? thats I can update screen stuff?

Thanks!

Capture, Store And Recall Image Of Form
I have an app that graphically displays production status in our facility. I'd like to capture images of the display and then play back the images to show how product moved through production. How can I capture an image of the form? Any advice on methods for playing back the images? Thanks.

Capture GotFocus Event For All The Controls On The Form
Hi,

I have a VB form with more than 200 controls on it. Now I want to put a function that will act as a help for what the user is suppose to do in any control. I have a function that has all the strings associated with the control names. So when any control on the form gets focus the help label will get the string associated with that control.

I want to find a way to avoid putting this function in each controls GotFocus event. I tried using the Form.ActiveControl but it does not work all the time. If anyone knows where should i put the Form.ActiveControl to achieve this please help.

Any information about Form.ActiveControl will be much appreciated as it looks like the best direction for me to as of now, but any comments on that is also awaited.

Thanks.
Himanh

Capture A Hidden Window/form To A Picturebox?
Is there any way to capture a hidden window without moving it to the top of the screen?

For example I have Notepad behind IE and I want to capture Notepad in a picturebox. I don't want to move Notepad on top of IE to capture it to the picturebox. Also, would it be possible to capture a Minimized window?

Any help would be appreciated.
Thanks!

Need To Capture Which Checkbox Is Checked And Pass The Value To Another Form...
Hi, i hav a problem dat i need help wif.I hav a group of checkboxes dat the user can choose and i need 2 capture which they clicked.Thing is the checkboxes r on a different form & i wil be needing the values on another form...can any1 advise me on how do i go abt doin dat??

Capture GotFocus Event For All The Controls On The Form
Hi,

I have a VB form with more than 200 controls on it. Now I want to put a function that will act as a help for what the user is suppose to do in any control. I have a function that has all the strings associated with the control names. So when any control on the form gets focus the help label will get the string associated with that control.

I want to find a way to avoid putting this function in each controls GotFocus event. I tried using the Form.ActiveControl but it does not work all the time. If anyone knows where should i put the Form.ActiveControl to achieve this please help.

Any information about Form.ActiveControl will be much appreciated as it looks like the best direction for me to as of now, but any comments on that is also awaited.

Thanks.

Capture Key Press Events On A Form With Controls
I need to be able to capture keyboard button presses on a form. the form has other controls on it and I can't be sure which control will have focus. but I want to be able to respond to keyboard input no matter which object is selected, or none. in particular the ENTER key and the number keys. for some reason the form's keydown, keyup, and keypress event handlers do not fire when I press a key on my program. is another control stealing the event from the form?

Capture Specific Area Inside A Form
Is it possible to capture a specific area inside a form by giving position?
something like this....



the given position is the red parallelogram
(i dont know how.... maybe with GetPixels(,,,))
i press the PrintScreen and i get the red area
inside the imagebox....

google gave me nothing

thanks in advance!

Raise Event In Form And Capture In Class
In VB6,
I open a modal form from class mod. Declared an event in the form. When the user click on OK button in the form, I raise an event and want to capture this event in the class module from where the form was opened. In the class mod, I've implemented WithEvents to capture the raised event from the form, but the control doesn't flow to the class mod when the event is raised in form. What should I be doing to fix this problem?
Thanks.

'frmSelect
Option Explicit

Public Event SelectedItem()
 
Private Sub cmdOK_Click()
   RaiseEvent SelectedItem
End Sub

'class
Private WithEvents mevtSelect As frmSelect

Private Sub DisplayForm()
     Dim objfrmSelect As frmSelect
     Set objfrmSelect = New frmSelect
     objfrmSelect.Load orecordset
     objfrmSelect.Show vbModal
         
     Unload objfrmSelect
     Set objfrmSelect = Nothing
End Sub

Private Sub mevtSelect_SelectedItem()
    ---do something
End Sub


How To Capture Change In A Control In Form Level
How to capture change in any control (textbox, Combobox .checkbox) - with out writing code in each and every controls change event, so there a way i can capture this kind of behavior in form level.
Note: I am getting into problem, because i am not using indexing for controls any more (because we will migrating to .NET in near future, and indexing is not supported in .NET). So i have to name each and every control differently like
txtEmployee1
txtEmpoyee2
txtEmployee3
txtEmpoyee4
So traping change in each and every control is painful when u have more controls.what i am looking for is there any way i can do that with out checking each control's change event
some thing like extending all controls change events to a fucntion or sub


Would appreciate any response.
Thank you.

Capture Webcam - If Form Is Not Topmost Then No Update
Hi VBcitizens,

When I'm running my application to capture the webcam to a picturebox it works fine, as long the form is topmost on the the screen, but when the form is minimized or another form is above it then the picturebox isn't been updated anymore untill it's back topmost again,

Is there a way around it?

I'm not sure if the problem is in making the hwnd with "WS_VISIBLE Or WS_CHILD"

       Hwnd = capCreateCaptureWindowA(iDevice, WS_VISIBLE Or WS_CHILD, 0, 0, 640, 480, picIcam.hwnd, 0)

Thanks at front, bye.

=============================================
aka Red2048.

Capture Keypress And Mouse Click Outside Of Form
Hey everyone,
I have a question, I didn't see it posted on here for exacty what I want to do, I have a program that when I use a keypress, or a mouse click, my program will do a certain task, however if something else has focus however, my program will no longer detect it, now I know that on .NET you are able to do it, however I haven't been able to find anything out on 6.0, if anyone can help me out, I would be greatly apprecitive.

Thank you very much

Aidanphoenix

How To Capture A Child Form And Paste Its Image In A Picture Box In Vb6?
how to capture a child form and paste its image in a picture box? I got difficulties in transfering the images of labels,textboxes etc... to a picture box? can anybody help me?

Siva.

Retreiving Value(capture Frame) Form Arrays And Need To Post That Picture On Web Page
Hello I m using the following code to connect my webcam. The webcam is working fine but I want to capture a frame.
http://ej.bantz.com/video/detail/
I read the above web page and I think each time a frame is captured this code is used.
Function MyFrameCallback(ByVal lwnd As Long, ByVal lpVHdr As Long) As Long

Debug.Print "FrameCallBack"

Dim VideoHeader As VIDEOHDR
Dim VideoData() As Byte

'//Fill VideoHeader with data at lpVHdr
RtlMoveMemory VarPtr(VideoHeader), lpVHdr, Len(VideoHeader)

'// Make room for data
ReDim VideoData(VideoHeader.dwBytesUsed)

'//Copy data into the array
RtlMoveMemory VarPtr(VideoData(0)), VideoHeader.lpData, VideoHeader.dwBytesUsed

Debug.Print VideoHeader.dwBytesUsed
Debug.Print VideoData

End Function
I am thinking as the RtlMoveMemory has 3 parameters...according to that the following part
'//Copy data into the array
RtlMoveMemory VarPtr(VideoData(0)), VideoHeader.lpData, VideoHeader.dwBytesUsed
is used to save the data of the current frame in the VideoData(0) array.

Can anyone plz help in this. How to retrive the values from array and i need to store it in memory location.
I need to get it on webpage... Anyone can help in this ??

Screen Capture -- Capture Page In Internet Browser
If I know the HWnd of the browser, how can I capture the page displayed in the browser into a bitmap? I need to capture the full page evenif there are horiz and vert scrollbars

Thanks

Capture Desktop Image And/or Wallpaper (not Screen Capture)
Hi all.
I have found several good codes for capturing the active screen. What I want to do is to capture the desktop, regardless of what programs are open or running, an image of the desktop as it looks with no other windows open, including the wallpaper if any.

Also, I am wondering where I can get the path to the picture being used as the wallpaper.

Any help?
Thanks

Wengang

Copyright © 2005-08 www.BigResource.com, All rights reserved