Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 13th, 2006, 1:50 PM   #41
tayspen
Hobbyist Programmer
 
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4 tayspen is on a distinguished road
That exapmle never worked for me, okus i feel there are better ones on that site .
tayspen is offline   Reply With Quote
Old Jan 13th, 2006, 3:20 PM   #42
Jason Isom
Programmer
 
Join Date: Dec 2005
Posts: 53
Rep Power: 3 Jason Isom is on a distinguished road
Quote:
Originally Posted by tayspen
That exapmle never worked for me, okus i feel there are better ones on that site .
Do you understand the code? The default is to flush the output every hour, although it's easily changeable. That's probably why it wasn't "working" for you.
Jason Isom is offline   Reply With Quote
Old Jan 13th, 2006, 3:53 PM   #43
tayspen
Hobbyist Programmer
 
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4 tayspen is on a distinguished road
Yea i understand it....But as i said i think there are better examples.....
tayspen is offline   Reply With Quote
Old Jan 13th, 2006, 6:42 PM   #44
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
how does this get better lol? Sure maybe some examples already in C#... But as far as the method goes i think this is the best it will get. Using hooks and such i mean
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Jan 13th, 2006, 7:02 PM   #45
tayspen
Hobbyist Programmer
 
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4 tayspen is on a distinguished road
Hmm, maybe your right, but still, a way to get the active window that it was typed in would be nice. But there are no examples, any body know how to do that?
tayspen is offline   Reply With Quote
Old Jan 13th, 2006, 9:24 PM   #46
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
Quote:
Originally Posted by Rory
GetActiveWindow perhaps? Alternatively install a windows message hook instead and intercept WM_KEY which will give you a window handle in the struct pointed to by wParam.

Implementation isn't hard, just be sure to get your extern attributes correct and mark your hook procedure as a delegate. Marshal provides equivalent memory and struct (a variable-only class simply marked LayoutKind.Sequential) dereferencing functions into managed code. In fact you could just convert my VB version straight into C# - I could do it myself if I have time.

?????
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Jan 13th, 2006, 10:30 PM   #47
tayspen
Hobbyist Programmer
 
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4 tayspen is on a distinguished road
Well, yea, but letssee it in code. Thats waht i meant. I meant i dont know how to implement that ^.
tayspen is offline   Reply With Quote
Old Jan 13th, 2006, 10:39 PM   #48
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
Jason Isom's example is pretty good... if only i could it to work....

[php]
static void Main(string[] args)
{
Keylogger kl = new Keylogger();


kl.Enabled = true; // enable key logging


kl.FlushInterval = 60000; // set buffer flush interval


kl.Flush2File(@"a:\logfile.txt", true); // force buffer flush
}
[/php]

how the **** is that enabling the timer??? kl is an instance of the entire class that was created correct? all of the code prior to that should have been implimented into a class right? am i missing something here?
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Jan 13th, 2006, 10:51 PM   #49
tayspen
Hobbyist Programmer
 
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4 tayspen is on a distinguished road
you cant get it to work? Change the 60000 to somthing like 5000, then it wiill show you every five seconds instead of an hour.....But it doesnt get the window it was typed in.
tayspen is offline   Reply With Quote
Old Jan 14th, 2006, 5:10 PM   #50
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
lmao i understand that just fine bro... the problem is the this line

[php]
kl.Enabled = true; // enable key logging
[/php]

and im sure after i fix that i will encounter another problem!

kl is the instance of the class i created... where in the class do you see an enabled bool?
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:23 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC