How do I Click the Command Buttons In other Executable Programs

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2006
Posts: 25
Reputation: Smooth_411_2000 is an unknown quantity at this point 
Solved Threads: 0
Smooth_411_2000 Smooth_411_2000 is offline Offline
Light Poster

How do I Click the Command Buttons In other Executable Programs

 
0
  #1
Jun 8th, 2006
How do I Tell VB to click on buttons in the executable program?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: How do I Click the Command Buttons In other Executable Programs

 
0
  #2
Jun 8th, 2006
Are you talking about making VB click one of it's buttons, or do you want to click buttons in another app's program? You can make VB click one of it's own buttons by simply setting it to true. So, pretend you have form1, and 2 buttons (command1 and command2) command2 exits the program, and command1 does a msgbox, and then exits the program. The code for command1 could look like this:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. msgbox "goodbye"
  2. command2 = true
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC