lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > General Software Chat


Register


Reply
 
Thread Tools
  #1  
Old 31st Jan 2009, 23:25
Member Group
 
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 Group
 
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
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) 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 Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

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