I utilized Worm's Keystroke.dll to accomplish this example. (please note that Worm also created a function for us to use that makes it even easier to use his keystroke.dll (less typing). THANK YOU worm!
Here is an example (.exe):
http://www.amsuser.com/ams/examples/...&Intrigued.exe
Here is the project file:
http://www.amsuser.com/ams/examples/...&Intrigued.apz
Note: You may want to make the Button you use first start with a Application.Sleep() (say for 3000ms (3 seconds)). To make sure the user doe snot click the Button object to quick and have this code malfunction.

Reply With Quote