I have a program, which brings up a Message Box, every now and then (don't ask me why). Does anyone know how to automate pressing the Enter Key or clicking on the OK button?
Printable View
I have a program, which brings up a Message Box, every now and then (don't ask me why). Does anyone know how to automate pressing the Enter Key or clicking on the OK button?
This page tells you how to automate keypresses: http://www.vbapi.com/ref/k/keybd_event.html