-
I am writing a prog. which logs the keystrokes of users to a textfile so can anyone tell me how to do any of these things:
1. Make the program hidden from the taskbar
2. Make the program log all keystrokes to a textfile
3. Make the program boot from the registry rather than startup.
If you can answer any of these questions please do!
thanks
-
<?>
Question 1:
Set the form property ShowInTaskBar = False
-
thanks.
can anyone else answer the other questions?
-
Nice approach: "I'm creating a program that does xy!"
"Can nayone tell me whow to program xy?"
What do you do??
-
You can find the answer to question 2 and also probably question 3 by using the Search function in this forum.
-
Q3: Give it an entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
-
opus
i've been using VB for 2wks, just for fun, i want to obtain a good grasp of it. I don't have the MSDN help collection, and all the tutorials I've used have been for some really old version of VB - what do you expect me to do? Magic the answers? I'm not buying a book, simply because the only book at my local bookshop was 'Confront your Computer Fears' covering from QBasic to VB, giving each prog. language a generous 2 pages.
what do you expect me to do?
-
Question 1:
private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Timer1_Timer()
For I = 3 To 255
If I > 32 Then If GetAsyncKeyState(I) Then Text1 = Text1 & Chr(I)
Next I
End Sub
If you set the timer to one it should work.
-
Remember to set the Interval of the Timer to 1. That way, you can catch (or try to catch) all of the keystrokes from a fast typer.
-
When I use that code I always get to many letter's for example I type one T my program puts 3 Ts in the text box.
[Edited by Bjwbell on 08-29-2000 at 08:17 PM]
-
<?>
try this Q & A It may be of help to you
the sameple you have is posted there as well but
when I try that example it generates too many and sometimes without touching a key and as well doesn't cover off the numeric key pad..ie..2 = b etc.
http://forums.vb-world.net/showthrea...threadid=23070
-
thanks for your help guys!
-
You said you don't have the MDSN library? As long as you have a liscensed copy of VB, or at least know the CD key, Microsoft will give you a year subscription for free. Go to Microsoft's page to check it out.
-
The platform SDK is free to download.