0% found this document useful (0 votes)
28 views

VBscripts 3

The document contains code that repeatedly toggles the Num Lock key on a system using the Windows Script Host. An object is created to access the keyboard and send keystrokes. In a loop, the Num Lock key is pressed, there is a short delay, and then the key is pressed again before a long delay. This cycle is repeated many times.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

VBscripts 3

The document contains code that repeatedly toggles the Num Lock key on a system using the Windows Script Host. An object is created to access the keyboard and send keystrokes. In a loop, the Num Lock key is pressed, there is a short delay, and then the key is pressed again before a long delay. This cycle is repeated many times.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

# C2 General
Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")

# C2 General
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")

# C2 General
i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

# C2 General
Set objShell = WScript.CreateObject("WScript.Shell")
i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

# C2 General
Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)

# C2 General
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

Dim objResult

Set objShell = WScript.CreateObject("WScript.Shell")


i=1
Do While i=1
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(200)
objResult = objShell.sendkeys("{NUMLOCK}")
Wscript.Sleep(6000)

Loop

# C2 General

You might also like