How can I make the PC click a button himself? Like, simulate a clicking event
Printable View
How can I make the PC click a button himself? Like, simulate a clicking event
If you are talking about clicking a button in your own project, then you can do this:This will call the click event.VB Code:
Call Command1_Click()
However, if you find yourself calling click events (or other control events), it is considered better practice to write a function that does what you want, and then call that instead (including calling it from the control event).
I just wanna be smart!
heres an example
Now all you have to do is call ClickIt and it'll do all your stuff!VB Code:
'This goes in the module Public Sub ClickIt() 'Any other commands go here Call command1_click() Msgbox "We did stuff!",,"Hurray" End Sub
right... that was a stupid wuestion... thx
lol we all have those...
Heres one of my stupid questions!
:p