Bold Text Here
how do we code the following buttons?capslock,shift,control,tab and enter

By using ascii values...

You can use the following -

''Set a reference to MS Scripting Library...

Dim WshShell As Object

Set WshShell = CreateObject("WScript.Shell")

WshShell.SendKeys "{ENTER}" ''For enter OR "{RETURN}"
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.