Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tastatur-Lichter mit VB zum blinken bringen...

Empfohlene Antworten

Veröffentlicht

Hi !!

Jeder von euch kennt doch die drei LED's auf der TAstatur.

Ist es möglich, eine Anwendung mit VB zu stricken, die diese Lampen einzeln ansteuert?

(z.B. für ein Lauflicht, oder dass alle gleichzeitig blinken..)

Need Help....

Thombo

Moin Thombo,


Public Type KeyboardBytes

kbByte(0 To 255) As Byte

End Type

Public kbArray As KeyboardBytes

Public Const VK_CAPITAL = &H14

Public Const VK_SCROLL = &H91

Public Const VK_NUMLOCK = &H90


Public Declare Function SetKeyboardState Lib "user32" (lppbKeyState As KeyboardBytes) As Long

Public Declare Function GetKeyboardState Lib "user32" (pbKeyState As KeyboardBytes) As Long



Sub main()

    'NUMLOCK an = 1; aus = 0

    GetKeyboardState kbArray

    kbArray.kbByte(VK_NUMLOCK) = 1

    SetKeyboardState kbArray


    'CAPSLOCK an = 1; aus = 0    

    kbArray.kbByte(VK_CAPITAL) = i Mod 2

    SetKeyboardState kbArray


    'SCROLLLOCK an = 1; aus = 0

    kbArray.kbByte(VK_SCROLL) = i Mod 2

    SetKeyboardState kbArray

End Sub

In einem VB_Projekt ein Modul anlegen, die entsprechenden Typen deklarieren und dann nur noch die Funktionen aufrufen!

Näheres unter www.vbworld.com -> CODE -> Mouse and Keyboard -> How to activate CapsLock and Numlock from Code

Viel Spass damit!

CU,

Red Bull

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.