_Kurt Posted December 27, 2006 Share Posted December 27, 2006 Hello guys, The purpose of my script is to Msgbox() the text that was typed on the keyboard. Now, most of my work is done, except I'm having trouble with _IsPressed. It seems as though my fast typing messes it up and, for example, if i type in "hello" at my speed it ends up as "hehehhheelloloo", perhaps I am doing something wrong? I added a small sleep, but it's still VERY messy. While 1 If _IsPressed("20") Then ; 20 = SPACEBAR Sleep(50) If _IsPressed("20") Then FileWrite($file, " ") EndIf ;if _ispressed etc. etc. etc. (snipped) ;and the rest of the letters and numbers WEnd $read = FileRead($file) Msgbox(0,"","This is what you typed:" & @CRLF & $read) Any other ideas on capturing keystrokes? Happy Holidays, Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 27, 2006 Share Posted December 27, 2006 How about not making a keylogger which NO ONE on this site supports. Link to comment Share on other sites More sharing options...
_Kurt Posted December 27, 2006 Author Share Posted December 27, 2006 (edited) Why would I create a keylogger, that's just stupid. I thought I could create an experiment THAT I WOULDN'T post in example scripts. I thought I'd like to see the capturing of keystrokes, not the capturing OF SOMEONE'S PASSWORD. Only an idiot would even think of creating something like that, and only an idiot would accuse someone of attempting to create one when clearly it was not the case. Why bother writing dangerous, or malicious scripts anyway? It's a waste of time, and it really pisses people off. Know what else pisses people off? Being accused for writting a KEYLOGGER. SINCERELY, Kurt Edited December 27, 2006 by _Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Outshynd Posted December 27, 2006 Share Posted December 27, 2006 "only an idiot would accuse someone of attempting to create one when clearly it was not the case"How is it clearly not the case? You want to log keystrokes. Keystroke logger -> keylogger. Whether you use it for malicious purposes or not is completely up to you and not the concern of the members of this board. Regardless of your intentions, you'll be shunned for asking, so stop defending yourself while you're ahead. Link to comment Share on other sites More sharing options...
xcal Posted December 27, 2006 Share Posted December 27, 2006 The trick is to make the loop tight (balance cpu vs accuracy), and do a check that the key is no longer pressed before recording the stroke. (If not _ispressed) How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Uten Posted December 27, 2006 Share Posted December 27, 2006 It seems as though my fast typing messes it up and, for example, if i type in "hello" at my speed it ends up as "hehehhheelloloo", perhaps I am doing something wrong?Obviously you are typing to slow for your algorithm.Why would I create a keylogger, that's just stupid. I thought I could create an experiment THAT I WOULDN'T post in example scripts. I thought I'd like to see the capturing of keystrokes, not the capturing OF SOMEONE'S PASSWORD. Only an idiot would even think of creating something like that, and only an idiot would accuse someone of attempting to create one when clearly it was not the case. Why bother writing dangerous, or malicious scripts anyway? It's a waste of time, and it really pisses people off. Know what else pisses people off? Being accused for writting a KEYLOGGER.Recording text on a global basis is..... So your argument does not make sense at all. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Developers Jos Posted December 27, 2006 Developers Share Posted December 27, 2006 * click * SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts