Jun 19, 2003 #1 PockyBum522 Programmer Joined Jun 10, 2003 Messages 239 Location US How do I simulate a mouse click?
Jun 19, 2003 #2 vbkris Programmer Joined Jan 20, 2003 Messages 5,994 Location IN why do u want to do it? Known is handfull, Unknown is worldfull Upvote 0 Downvote
Jun 19, 2003 1 #3 MatDavies Programmer Joined Feb 22, 2001 Messages 243 Location GB you can use the mouse_event api call. there is an example of how to use it here http://www.vb-helper.com/howto_move_click_mouse.html regards Matt Upvote 0 Downvote
you can use the mouse_event api call. there is an example of how to use it here http://www.vb-helper.com/howto_move_click_mouse.html regards Matt
Jun 19, 2003 Thread starter #4 PockyBum522 Programmer Joined Jun 10, 2003 Messages 239 Location US I want to press a button in a program, but I thinkMatdavies post will work. If you have a better way to click a button in a program, let me know. Upvote 0 Downvote
I want to press a button in a program, but I thinkMatdavies post will work. If you have a better way to click a button in a program, let me know.
Jun 19, 2003 #5 keithf01 Programmer Joined Jun 24, 2002 Messages 13 Location US The easiest way to perform a button click from inside another sub or funtion is to call the function. If you want to run a command button named cmdClearForm from inside another function just call cmdClearForm_Click and the code will run. Good luck. KF Upvote 0 Downvote
The easiest way to perform a button click from inside another sub or funtion is to call the function. If you want to run a command button named cmdClearForm from inside another function just call cmdClearForm_Click and the code will run. Good luck. KF
Jun 20, 2003 #6 vinceg Programmer Joined Dec 5, 2001 Messages 9 Location US you can also just set it's value property to true, as in; cmdButton.Value = True That will cause the click event to fire Vince Upvote 0 Downvote
you can also just set it's value property to true, as in; cmdButton.Value = True That will cause the click event to fire Vince