|
-
Mar 26th, 2003, 08:12 PM
#1
Thread Starter
Fanatic Member
CommandButton
How can I make the PC click a button himself? Like, simulate a clicking event
"A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
"First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
- Robert Matthews, Science Correspondent
-
Mar 26th, 2003, 08:22 PM
#2
Frenzied Member
If you are talking about clicking a button in your own project, then you can do this:This will call the click event.
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).
-
Mar 26th, 2003, 08:28 PM
#3
Addicted Member
I just wanna be smart!
heres an example
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
Now all you have to do is call ClickIt and it'll do all your stuff!
Quis Custodiet Ipsos Custodes?
You don't have to be faster than the bear, you just have to be faster than the slowest person running from the bear.
-
Mar 26th, 2003, 08:34 PM
#4
Thread Starter
Fanatic Member
right... that was a stupid wuestion... thx
"A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
"First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
- Robert Matthews, Science Correspondent
-
Mar 26th, 2003, 09:07 PM
#5
Addicted Member
Quis Custodiet Ipsos Custodes?
You don't have to be faster than the bear, you just have to be faster than the slowest person running from the bear.
-
Mar 26th, 2003, 09:34 PM
#6
Thread Starter
Fanatic Member
"A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
"First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
- Robert Matthews, Science Correspondent
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|