Results 1 to 14 of 14

Thread: Three simple questions

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    London, UK
    Posts
    32

    Unhappy

    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
    CGB

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Question 1:

    Set the form property ShowInTaskBar = False
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    London, UK
    Posts
    32
    thanks.
    can anyone else answer the other questions?
    CGB

  4. #4
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Thumbs down

    Nice approach: "I'm creating a program that does xy!"
    "Can nayone tell me whow to program xy?"

    What do you do??
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  5. #5

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Q3: Give it an entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    London, UK
    Posts
    32
    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?
    CGB

  8. #8
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    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.

  9. #9
    Guest
    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.

  10. #10
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    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]

  11. #11
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  12. #12

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    London, UK
    Posts
    32
    thanks for your help guys!
    CGB

  13. #13
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441
    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.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  14. #14
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The platform SDK is free to download.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width