[Help]My Project[Solved]
Like im trying to make one simple code but it have 6 erros...
This is my code... i tried 2 make it on a .txt and it work .vbs worked... but when i try to convert it to visual basic it got 6 errors
The code i put with a bottom .
and when i try to debug it i got another error
>
http://img710.imageshack.us/img710/7843/13151797.png

How do i declare the wshell to work?..
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
wshShell = wscript.CreateObject("WScript.Shell")
Do
wscript.sleep(100)
wshshell.sendkeys("{CAPSLOCK}")
wshshell.sendkeys("{NUMLOCK}")
wshshell.sendkeys("{SCROLLLOCK}")
Loop
End Sub
End Class
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
wshShell = wscript.CreateObject("WScript.Shell")
Do
wscript.sleep(100)
wshshell.sendkeys("{CAPSLOCK}")
wshshell.sendkeys("{NUMLOCK}")
wshshell.sendkeys("{SCROLLLOCK}")
Loop
End Sub
End Class
Code:
Error 1 Name 'wshShell' is not declared. Error 2 Name 'wscript' is not declared. Error 3 Name 'wscript' is not declared. Error 4 Name 'wshshell' is not declared. Error 5 Name 'wshshell' is not declared. Error 6 Name 'wshshell' is not declared.
and when i try to debug it i got another error
>
http://img710.imageshack.us/img710/7843/13151797.png

How do i declare the wshell to work?..
