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. C#
  4. Holding a key down

Holding a key down

Scheduled Pinned Locked Moved C#
question
2 Posts 2 Posters 0 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.
  • J Offline
    J Offline
    Jay Gatsby
    wrote on last edited by
    #1

    SendKeys is great for a lot of things, but what If I want to hold a button down for a length of time? I don't want to repeat the keystroke a whole bunch of times, I really mean hold it down--I've been able to do some cool things by importing the user32 dll with holding down the mouse button (wherein you must send both the up and the down command, and thus can wait between the two if you wish), is there a way to do this with keys?

    -Gatsby

    X 1 Reply Last reply
    0
    • J Jay Gatsby

      SendKeys is great for a lot of things, but what If I want to hold a button down for a length of time? I don't want to repeat the keystroke a whole bunch of times, I really mean hold it down--I've been able to do some cool things by importing the user32 dll with holding down the mouse button (wherein you must send both the up and the down command, and thus can wait between the two if you wish), is there a way to do this with keys?

      -Gatsby

      X Offline
      X Offline
      Xmen Real
      wrote on last edited by
      #2

      what is the purpose for this...Well, KeyDown event does exactly

      TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can

      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