Travel Fans
Go Back   Computer Juice Computer Software General Software Chat

Register

 Default 

Visual Basic - How To Make a AUTO Button pusher




Reply
 
Thread Tools
  #1  
Old 31st Jan 2009, 23:25
Full Member
Posts: 151
 
hello i would like to make a program for practice on how to make a visual basic program and i want it to push the letter Z every 50milliseconds.

i want to make 2 buttons and when i push one it starts in 2Min and when i push my F2 button i want it to stop wether or not another program is over it. ( windows live mail on top )

how would i do this? ( please show coding and explain buttons etc. )

thanks

  #2  
Old 2nd Feb 2009, 13:57
New Member
Posts: 1
 
I don't now, what You exactly would reached, but the sample (with a form) look as (with a form, label and timer - for time events it must be):
----------------------------------------------
Private Sub Form_Load()
Timer1.Interval = 1000 ' it is 1 sek, for 50 ms must be 50
Label1 = "" ' only for sample result
End Sub

Private Sub Timer1_Timer()
Command1_KeyPress (Asc("Z")) ' invoke a KeyPress event for the form
End Sub
------------------------------------------------
The label1 is only for sample
Second tail of Your mail I understand not exactly, but I thing, You can use key events (KeyPressed, KeyDown, KeyUp and so on)
Best Regards
PawelT
Reply

Register

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make a contact us button on my website Breaker3D Web Design, Hosting & SEO 8 25th Feb 2009 07:53
Visual Basic HELP!! (opening new form) ryannathans General Software Chat 10 23rd Jan 2009 15:42
Visual nessa2 PC & Console Gaming 2 11th Feb 2008 05:18
Vista with visual basic Cew27 Linux & Alternative OS 1 27th Nov 2007 14:25
Visual Basic 6 momuncoderlife Web Design, Hosting & SEO 4 8th Nov 2007 02:54
Thread Tools



Translations Powered by Powered by Google
Arabic Bulgarian Chinese Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Taiwanese Thai Turkish Ukrainian

Copyright ©2006 - 2010 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2010 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.