Click here to Skip to main content
15,920,801 members
Home / Discussions / C#
   

C#

 
AnswerRe: JPEG Compression in C# Pin
User 665828-Jan-09 3:30
User 665828-Jan-09 3:30 
AnswerRe: JPEG Compression in C# Pin
SimpleData28-Jan-09 3:39
SimpleData28-Jan-09 3:39 
AnswerRe: JPEG Compression in C# Pin
Ennis Ray Lynch, Jr.28-Jan-09 5:26
Ennis Ray Lynch, Jr.28-Jan-09 5:26 
GeneralRe: JPEG Compression in C# Pin
SimpleData28-Jan-09 5:29
SimpleData28-Jan-09 5:29 
GeneralRe: JPEG Compression in C# Pin
Ennis Ray Lynch, Jr.28-Jan-09 5:42
Ennis Ray Lynch, Jr.28-Jan-09 5:42 
GeneralRe: JPEG Compression in C# Pin
SimpleData28-Jan-09 6:02
SimpleData28-Jan-09 6:02 
GeneralRe: JPEG Compression in C# Pin
Mark Churchill28-Jan-09 12:11
Mark Churchill28-Jan-09 12:11 
QuestionC# Clipboard - Works, but is one step behind Pin
Olav Alexander Mjelde28-Jan-09 3:22
Olav Alexander Mjelde28-Jan-09 3:22 
Hi,

I have a problem with my CTRL+C Keylogger.
It's an application which listens (hook) for CTRL+C and if it is triggered, it searches for the clipboard text (if it is text).

It works perfectly, but it is one step behind.
eg. if I have a text: abc def geh
and I first copy abc, nothing happends. If I then copy def, it has abc in the clipboard.

So, then I made this thread on tek-tips and a person there gave me a suggestion that maybe my application triggers too fast (eg. tries to use the clipboard, befire it's filled).

I then tried a thread.sleep(1000)..

This worked (on vista), but not on xp sp3.
Here is the code
if (nCode >= 0 && wParam == (IntPtr)WM_KEYDOWN)
{
    int vkCode = Marshal.ReadInt32(lParam);

    if (Keys.C == (Keys)vkCode && Keys.Control == Control.ModifierKeys)
    {


        Thread.Sleep(1000);

        if (iData.GetDataPresent(DataFormats.Text, true))
        {

            frm2.setSearch(iData.GetData(DataFormats.Text, true).ToString());
        }
    }

}


Olav Alexander Mjelde

AnswerRe: C# Clipboard - Works, but is one step behind Pin
User 665828-Jan-09 3:25
User 665828-Jan-09 3:25 
QuestionAny way to convert/compress JPG to TIFF CCITT Fax4? Pin
Matjaz-xyz28-Jan-09 3:19
Matjaz-xyz28-Jan-09 3:19 
AnswerRe: Any way to convert/compress JPG to TIFF CCITT Fax4? Pin
Mark Churchill28-Jan-09 12:40
Mark Churchill28-Jan-09 12:40 
GeneralRe: Any way to convert/compress JPG to TIFF CCITT Fax4? Pin
Matjaz-xyz28-Jan-09 22:30
Matjaz-xyz28-Jan-09 22:30 
GeneralRe: Any way to convert/compress JPG to TIFF CCITT Fax4? Pin
Mark Churchill29-Jan-09 3:40
Mark Churchill29-Jan-09 3:40 
QuestionDevice Drivers Pin
queries36528-Jan-09 3:15
queries36528-Jan-09 3:15 
QuestionReading xml that contains reference to xml’s Pin
Ronenb28-Jan-09 3:08
Ronenb28-Jan-09 3:08 
QuestionStruct vs array performance Pin
Lutosław28-Jan-09 2:25
Lutosław28-Jan-09 2:25 
AnswerRe: Struct vs array performance Pin
SeMartens28-Jan-09 2:44
SeMartens28-Jan-09 2:44 
GeneralRe: Struct vs array performance Pin
User 665828-Jan-09 3:02
User 665828-Jan-09 3:02 
GeneralRe: Struct vs array performance Pin
SeMartens28-Jan-09 3:14
SeMartens28-Jan-09 3:14 
GeneralRe: Struct vs array performance Pin
User 665828-Jan-09 3:23
User 665828-Jan-09 3:23 
AnswerRe: Struct vs array performance Pin
C Change28-Jan-09 3:09
C Change28-Jan-09 3:09 
AnswerRe: Struct vs array performance Pin
Ennis Ray Lynch, Jr.28-Jan-09 4:02
Ennis Ray Lynch, Jr.28-Jan-09 4:02 
Questionxml data Pin
arkiboys28-Jan-09 1:47
arkiboys28-Jan-09 1:47 
AnswerRe: xml data Pin
SeMartens28-Jan-09 1:51
SeMartens28-Jan-09 1:51 
GeneralRe: xml data Pin
arkiboys28-Jan-09 2:01
arkiboys28-Jan-09 2:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.