Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. help needed on Raw Input in vb.net

help needed on Raw Input in vb.net

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpquestionjsonhelp
3 Posts 2 Posters 26 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maorix
    wrote on last edited by
    #1

    hi guru of dotnet! I'm a poor beginner in dotnet (and in english language too :( ) but I've a question for you: I'm coming from a complete rewrite of my VBA code with wich I wrote a time control about use of PC for my son & daugther (they have to be limited to 2 hours per day!) in which I've inserted two global Keyboard and Mouse hooks using Window's API to check if some user activity is in progress to restart countdown or shutdown system. The VBA code works fine in both my Win7 x32 & x64 machines but I'm not able to code the correct hooks in vb.net: it works well in the x32 one but in x64 mouse hook stops to work after a short time! (in the Web I read the OS stops the hook based on timeout of 300/500 Msecs (my timer is 1000 msecs) and that the injection of dll32 in 64 bit code has a lot of problems... I'm reading now about a Row Input system to free OS from hooks but I'm not able to knowledge anythink about!!! So the question is: can I have a vb.net example to perform both traps for a keypressed from keyboard AND a Mouse move (not interested on which key was pressed and so on...) to know date&time of that event to handle them by my code? Thanking in advantage for any help you'll give to me, send my best regards. Maurizio, Italy ;)

    M 1 Reply Last reply
    0
    • M Maorix

      hi guru of dotnet! I'm a poor beginner in dotnet (and in english language too :( ) but I've a question for you: I'm coming from a complete rewrite of my VBA code with wich I wrote a time control about use of PC for my son & daugther (they have to be limited to 2 hours per day!) in which I've inserted two global Keyboard and Mouse hooks using Window's API to check if some user activity is in progress to restart countdown or shutdown system. The VBA code works fine in both my Win7 x32 & x64 machines but I'm not able to code the correct hooks in vb.net: it works well in the x32 one but in x64 mouse hook stops to work after a short time! (in the Web I read the OS stops the hook based on timeout of 300/500 Msecs (my timer is 1000 msecs) and that the injection of dll32 in 64 bit code has a lot of problems... I'm reading now about a Row Input system to free OS from hooks but I'm not able to knowledge anythink about!!! So the question is: can I have a vb.net example to perform both traps for a keypressed from keyboard AND a Mouse move (not interested on which key was pressed and so on...) to know date&time of that event to handle them by my code? Thanking in advantage for any help you'll give to me, send my best regards. Maurizio, Italy ;)

      M Offline
      M Offline
      Maorix
      wrote on last edited by
      #2

      Hallo guys Success! Finally I've found a code that works fine in both systems, so I don't need more reply for that question. M

      U 1 Reply Last reply
      0
      • M Maorix

        Hallo guys Success! Finally I've found a code that works fine in both systems, so I don't need more reply for that question. M

        U Offline
        U Offline
        User 11263744
        wrote on last edited by
        #3

        Hi, Can you post your code in VB.net for me to study more? Thanks, Nhan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups