Hi, I have been searching around the net to try and find out how to simulate keyboard key presses and all I have been able to come up with so far are VB6 examples. I want to try and do this with VB.net.
The bit of code I'm looking to use will do the following:
1. Open up a webpage (which I have figured out ok)
2. The webpage im loading is used to download a file and when you load the pages brings up the dialog box to either open the file, save it or cancel the download. What I want to do here is tab accross to the particular button I want to in this case the save button. Then I want it to simulate an return/enter button press.
3. This will then open the browser box where I can choose where I want to put the file. As above I want to tab to the directory box and then add in the text for that and then tab to the save button and hit enter again.
Anyway I probably went into more detail than needed but wanted to give you an idea of what I want the program to do.
Has anyone got the keypress thing working in vb.net? I'm sure it should be a simple thing but I have searched and cannot find the answer. Anyway I hope I have given enough information and hope somebody can point me in the right direction.
Robert
Enter your message below
Sign in or Join us (it's free).