hold a key...

is there a way to "codely" press and hold down a key for x amount of seconds


Answer this question

hold a key...

  • Cyndi

    I think the functionkey is a special key really. You could maybe try {fn}

     

    here is the documentation, with some examples and scenarios, of the sendkey's class

    http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx

     

     



  • Mr. Greg

    Great explaination and examples!

    One thing not in here is a way to effectively get the "Fn" + F8 keystrokes....what I mean is my laptop has a blue Fn key that changes the effect of the F1-12 keys. A "Fn" + F8 toggles the LCD display to the laptop - laptop + ext monitor - ext monitor only. I would like to be able to do this programmatically.

    Thnx


  • tobis

  • tarheit

    Apparently it is a VERY special key...cuz VB doesn't even talk about it. I tried your suggestion of {fn} but I get an error that it isn't a valid key....plus I need to have a way to combine Fn with F8 to get the desired effect...the syntax simply doesn't allow something like {fn}...needs a + or % for example.

    I wonder if there is another way to set the LCD/LCD + Monitor/Monitor sequence rather than the Fn+F8


  • mallikarjun

     In Timer set the timer Interval And

    Use SendKey Function...



  • hold a key...