VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



MAKE THE KEYBOARD LIGHTS DANCE

by Im_[B]0ReD (5 Submissions)
Category: Jokes/Humor
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

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!!!

Assumes
put a command button on the form named Command1
Side Effects
This temporarily freezes your computer- (until it finishes the For, Next loop)

Rate MAKE THE KEYBOARD LIGHTS DANCE

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

Download this snippet    Add to My Saved Code

MAKE THE KEYBOARD LIGHTS DANCE Comments

No comments have been posted about MAKE THE KEYBOARD LIGHTS DANCE. Why not be the first to post a comment about MAKE THE KEYBOARD LIGHTS DANCE.

Post your comment

Subject:
Message:
0/1000 characters