phillip Posted March 4, 2008 Report Share Posted March 4, 2008 i want to captuare my desktop to Clipboard in labview via win api. but when call the function BitBlt(HDC hdcDest,int nXDest,int nYDest,int nWidth,int nHeight,HDC hdcSrc,int nXSrc,int nYSrc,DWORD dwRop) i don't know how to input the last para in labview. The data type is DWORD. Should i input SRCCOPY directly? When i call function SetClipboardData(UINT uFormat, HANDLE hMem) to set the bitmap to clipboard i met the same question. How to input the first para which type is UINT. help ~thanks~~ Quote Link to comment
TobyD Posted March 4, 2008 Report Share Posted March 4, 2008 QUOTE(phillip @ Mar 2 2008, 07:37 PM) i want to captuare my desktop to Clipboard in labview via win api. but when call the function BitBlt(HDC hdcDest,int nXDest,int nYDest,int nWidth,int nHeight,HDC hdcSrc,int nXSrc,int nYSrc,DWORD dwRop) i don't know how to input the last para in labview. The data type is DWORD. Should i input SRCCOPY directly?When i call function SetClipboardData(UINT uFormat, HANDLE hMem) to set the bitmap to clipboard i met the same question. How to input the first para which type is UINT. help ~thanks~~ I don't know if this will help, but have you seen this thread? It discusses how to capture an image of the desktop to the windows clipboard by simulating the print screen key. I have attached an updated sample VI. Download File:post-8758-1204567862.vi Quote Link to comment
Yair Posted March 4, 2008 Report Share Posted March 4, 2008 The thread Toby linked to also includes a link to the code capture tool, which includes VIs which allow writing an image to the clipboard. Quote Link to comment
phillip Posted March 4, 2008 Author Report Share Posted March 4, 2008 haha! it works~ thank u very much^^ but still i want to know what problam with my code: Quote Link to comment
Yair Posted March 5, 2008 Report Share Posted March 5, 2008 QUOTE(phillip @ Mar 4 2008, 03:01 AM) but still i want to know what problam with my code: I'm not sure you're using the functions correctly, but I don't feel like starting to read up on them to understand how they work. Essentially, a UINT should be a U32. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.