| | |
Read keyboard in console application: a special case !
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2006
Posts: 49
Reputation:
Solved Threads: 0
Hi everybody,
I have been writing a windows console application in c#. I want it to read all keys pressed and write them all into a text file when a specific window is active in windows xp environment. Now, I can find the active window, but I failed to read keys entered when the intended window is active. ConsoleKey does not work..
Any recommendation?
Thanks..
I have been writing a windows console application in c#. I want it to read all keys pressed and write them all into a text file when a specific window is active in windows xp environment. Now, I can find the active window, but I failed to read keys entered when the intended window is active. ConsoleKey does not work..
Any recommendation?
Thanks..
You see things; and you say 'Why?' But I dream things that never were; and I say 'Why not'
•
•
Join Date: Dec 2006
Posts: 49
Reputation:
Solved Threads: 0
I understand LizR. However, this is must for my master-thesis
I need to store all messages during the chat sessions among users. And my solution is to store keyboard entries when the chat window of the intended program is active. I could not think of any other solution...
I appreciate any help..
Best Regards
I need to store all messages during the chat sessions among users. And my solution is to store keyboard entries when the chat window of the intended program is active. I could not think of any other solution...
I appreciate any help..
Best Regards
You see things; and you say 'Why?' But I dream things that never were; and I say 'Why not'
•
•
Join Date: Dec 2006
Posts: 49
Reputation:
Solved Threads: 0
I'm trying to improve the intended tool with some complementary features. Currently and unfortunately, it does not support logging of chat sessions. And also its API does not provide such a capability.
If I could program what I want then I will do what is required for legacy.. Also I appreciate any help about legacy..
Thanks for your time..
So, what should I do?
If I could program what I want then I will do what is required for legacy.. Also I appreciate any help about legacy..
Thanks for your time..
So, what should I do?
You see things; and you say 'Why?' But I dream things that never were; and I say 'Why not'
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
As a side comment, Im not sure how logging an IM is going to ever form part of a thesis, however, surely writing a new IM that takes the current one and improves on it by adding the functionality you want is a far better use of all as users can then log, should they want, in a legal and healthy manner.
•
•
Join Date: Dec 2006
Posts: 49
Reputation:
Solved Threads: 0
Actually, I like that idea, coding a new IM for the existing software tool, but I am not sure that my thesis-advisor will love it 
And also, I am not sure I could write a new IM in a integration with the existing software... this is the other question in my mind.
LizR, as far as I understand, you absolutely did not suggest to save chat-session by reading keyboard, even if I find a way to obey legal issues.
Thaks a lot..
Best Regards..

And also, I am not sure I could write a new IM in a integration with the existing software... this is the other question in my mind.
LizR, as far as I understand, you absolutely did not suggest to save chat-session by reading keyboard, even if I find a way to obey legal issues.
Thaks a lot..
Best Regards..
You see things; and you say 'Why?' But I dream things that never were; and I say 'Why not'
•
•
Join Date: Dec 2006
Posts: 49
Reputation:
Solved Threads: 0
Meanwhile,
When I searched through the internet with "c# keylogger" keyword, then it returns lots of results in official sites and forums.
I think its legal issues is related to your purposes. Once you've defined your problem statement and purpose for using keylogger application officially, then it is ok..
What is yours oppinion about that issue?
Best Regards.
When I searched through the internet with "c# keylogger" keyword, then it returns lots of results in official sites and forums.
I think its legal issues is related to your purposes. Once you've defined your problem statement and purpose for using keylogger application officially, then it is ok..
What is yours oppinion about that issue?
Best Regards.
You see things; and you say 'Why?' But I dream things that never were; and I say 'Why not'
>What is yours oppinion about that issue?
I think this is identical to discussion of writing a virus for instructional purposes. The direct intention may be benign, but ultimately it's so prone to being used illegally that Daniweb's rules come into play. Thus, discussion of keylogger implementation is prohibited.
I think this is identical to discussion of writing a virus for instructional purposes. The direct intention may be benign, but ultimately it's so prone to being used illegally that Daniweb's rules come into play. Thus, discussion of keylogger implementation is prohibited.
I'm here to prove you wrong.
![]() |
Similar Threads
- scanf discussion (C)
Other Threads in the C# Forum
- Previous Thread: Excel and C#
- Next Thread: Updating SQL database, Please help
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client code color combobox control conversion csharp custom database datagrid datagridview dataset datastructure datetime degrees development draganddrop drawing encryption enum event excel file form format forms function gdi+ grade hash httpwebrequest image index input install java label lisp list listbox listener mandelbrot math mouseclick mp3 mysql operator path photoshop picturebox pixelinversion post process programming radians regex remote remoting richtextbox safari serialization server sleep snooze socket sql statistics stream string table tables tcp text textbox thread time timer update usercontrol usercontrols validation visualstudio webbrowser windows winforms wpf xml






