📊 VBA (Excel)

Apply Disable Sticky Keys Shortcut Prompt (VBA)

Stops the Sticky Keys dialog from popping up when Shift is pressed 5 times. Applied via WScript.Shell.RegWrite from VBA.

By WindowsScripting.com · 427 B
DisableStickyKeysPromptRegSet.bas
Attribute VB_Name = "DisableStickyKeysPromptRegSet"
Option Explicit

Public Sub DisableStickyKeysPromptRegSet()
    Dim wsh As Object
    Dim regPath As String

    Set wsh = CreateObject("WScript.Shell")
    regPath = "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys\Flags"

    wsh.RegWrite regPath, "506", "REG_SZ"

    MsgBox "Disable Sticky Keys Shortcut Prompt applied." & vbCrLf & regPath, vbInformation
End Sub