[RESOLVED] vb2008 force enter key press
this is the code i have so far:
Code:
my.computer.sendkeys("Hello all")
that forces the keys hello all
when i try it with enter it is like this:
Code:
my.computer.sendkeys(keys.enter)
when ever i try this it forces teh keys 13 that is because teh keycode for enter is 13. does ne1 no any ways around this plz helm me
:p
Re: vb2008 force enter key press
Wrong forum. :) I'm pretty sure this thread will get moved but for your future references here is where you need to post.
Re: vb2008 force enter key press
Re: vb2008 force enter key press
Re: vb2008 force enter key press
keys.enter = 13 which is why you are getting 13 instead of an actual enter press.
keys.enter is just an enum which is an integer value representing certain keys.
stimbo gave you the correct answer above. If you had hit F1 and looked in the help file under sendkeys, you would see that, along with a whole bunch of other special strings you can use with SendKeys like sending tab, escape, etc...
Re: vb2008 force enter key press
Send Keys Documentation
always a good place to start...
Re: vb2008 force enter key press
thanx guys you were a big help