Dec 5, 2001 #1 bootlace Programmer Dec 5, 2001 2 GB I cannot find any info on seting the led's on the key board for the capslock & num lock eta in visual basic can any one help.
I cannot find any info on seting the led's on the key board for the capslock & num lock eta in visual basic can any one help.
Dec 5, 2001 #2 kmcclung Programmer Nov 20, 2001 120 US Here is sample code for checking to see if CAPS LOCK is on. If not, it will turn it on. Hope this helps! Dim iRetVal As Integer ' Check the status of the CAPS LOCK key iRetVal = GetKeyState(VK_CAPITAL) If iRetVal = 1 Then ' CAPS LOCK is already on - continue Else ' CAPS LOCK is OFF - toggle key to ON NTToggleKeyCaps End If Upvote 0 Downvote
Here is sample code for checking to see if CAPS LOCK is on. If not, it will turn it on. Hope this helps! Dim iRetVal As Integer ' Check the status of the CAPS LOCK key iRetVal = GetKeyState(VK_CAPITAL) If iRetVal = 1 Then ' CAPS LOCK is already on - continue Else ' CAPS LOCK is OFF - toggle key to ON NTToggleKeyCaps End If