[VB.NET] Programitically typing and clicking

Discussion in 'Mixed Languages' started by stevemk14ebr, Nov 19, 2012.

  1. stevemk14ebr

    stevemk14ebr MDL Senior Member

    Jun 23, 2010
    267
    48
    10
    #1 stevemk14ebr, Nov 19, 2012
    Last edited: Nov 19, 2012
    The best way to explain this is by giving a situation, say i press "A" and i want the program to automatically press "A" again
    how would i do this every time i try to automatically click or press a button using every method i can find i get a stack unbalanced error
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. PAYMYRENT

    PAYMYRENT MDL Developer

    Jul 28, 2009
    1,462
    419
    60
    have you tried the My namespace

    Keyboard.SendKeys i think it is might work if not ill dig up some of my older code for you
     
  3. stevemk14ebr

    stevemk14ebr MDL Senior Member

    Jun 23, 2010
    267
    48
    10
    #3 stevemk14ebr, Nov 25, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    got it to work thank you i did what you said
    Code:
    my.computer.keyboard.sendkeys("A")
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...