VB icon

MAKE THE KEYBOARD LIGHTS DANCE!!!!!

Email
Submitted on: 1/4/2015 2:53:00 PM
By: Im_[B]0ReD (from psc cd)  
Level: Beginner
User Rating: By 7 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 837
 
     this is just a simple code demonstrating the use of the SendKeys function!!! other than that this code is for humor!!! to some this code is useless but this might be helpfull 2 someone, that's why i submitted it. Plus this is pretty funny!!!
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: MAKE THE KEYBOARD LIGHTS DANCE!!!!!
' Description:this is just a simple code demonstrating the use of the SendKeys function!!! other than that this code is for humor!!! to some this code is useless but this might be helpfull 2 someone, that's why i submitted it. Plus this is pretty funny!!!
' By: Im_[B]0ReD (from psc cd)
'
' Assumes:put a command button on the form named Command1
'
' Side Effects:This temporarily freezes your computer- (until it finishes the For, Next loop)
'**************************************

Private Sub Command1_Click()
Dim i As Integer 'declare the variable
For i = 1 To 150 'how many times (you can change the 150 to whatever you want)
 SendKeys "{CAPSLOCK}", True 'turn on the capslocks light, then turn it off
 SendKeys "{DOWN}", True 'just to give more time 
 SendKeys "{DOWN}", True '^^^^^
 SendKeys "{SCROLLLOCK}", True 'turn on the scroll lock light, turn it off
 SendKeys "{DOWN}", True 'give more time
 SendKeys "{DOWN}", True '^^^^^
Next i
End Sub


Other 4 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.