boxstarter icon indicating copy to clipboard operation
boxstarter copied to clipboard

Feature: Allow setting single- or double-clicking items in Explorer

Open AnthonyMastrean opened this issue 6 years ago • 1 comments

Although, it seems like we have to update a complicated bit mask, ShellState?

image

Possible starting point

    $path = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer'
    $shell_state = (Get-ItemProperty -Path $path).ShellState
    $shell_state[4] = $shell_state[4] -bxor 32
    Set-ItemProperty -Path $path -Name ShellState -Value $shell_state

Although it would be nice to set the value instead of toggling. Am I following this bitwise math correctly?

  • double-click 52
  • single-click 20

AnthonyMastrean avatar Jan 17 '18 21:01 AnthonyMastrean

as you've pointed out modifying SHELLSTATE should work.

mwallner avatar Aug 04 '18 09:08 mwallner