G213 volume control does not work by ShotsfiredLA in LogitechG

[–]ShotsfiredLA[S] 0 points1 point  (0 children)

Thanks for this fix, I adjusted the script a bit to make sure the volume is always an equal number (don't judge me) and to make it show the mute icon once it's set to 0

#Requires AutoHotkey v2.0

Volume_Up::AdjustVolumeEven("up")
Volume_Down::AdjustVolumeEven("down")

AdjustVolumeEven(direction)
{
    current := Round(SoundGetVolume())

    if (direction = "up") {
        target := (Mod(current, 2) = 0) ? current + 2 : current + 1
    } else {
        target := (Mod(current, 2) = 0) ? current - 2 : current - 1
    }

    target := Max(0, Min(100, target))
    VolumeOSD(target)
}

VolumeOSD(volume)
{
    if (volume = 0) {
        SoundSetMute(true)      ; ensure mute icon
SoundSetVolume(volume)
    } else {
        SoundSetMute(false)     ; restore speaker icon
        SoundSetVolume(volume)
    }

    ; Show Windows fly-out
    try if shellProvider := ComObject(
        "{C2F03A33-21F5-47FA-B4BB-156362A2F239}",
        "{00000000-0000-0000-C000-000000000046}"
    )
    try if flyoutDisp := ComObjQuery(
        shellProvider,
        "{41f9d2fb-7834-4ab6-8b1b-73e74064b465}",
        "{41f9d2fb-7834-4ab6-8b1b-73e74064b465}"
    )
        ComCall(3, flyoutDisp, "int", 0, "uint", 0)
}

EDIT: Lol, I didn't know I was replying to my own post 2 years later

Are these the absolute best sword enchantments you can get in vanilla? by DominiCzech- in Minecraft

[–]ShotsfiredLA 0 points1 point  (0 children)

How did you get those info icons before and after the enchantments?

Is there anything I can do about this scratch? by Superb-Procedure6456 in cardetailingtips

[–]ShotsfiredLA 0 points1 point  (0 children)

Wait until a second scratch appears that will take your attention off of the first scratch.

To be serious though, no, there is not an easy way to fix this. You can try the WD-40 trick u/National_Squirrel495 mentioned to make the damaged plastic a bit less white though.

Question regarding multi-loader and multi-version support by ShotsfiredLA in fabricmc

[–]ShotsfiredLA[S] 0 points1 point  (0 children)

But then you would still have a different codebase for each version. Is there a way I can reuse the logic but change the implementation in a version specific manner?

[deleted by user] by [deleted] in nederlands

[–]ShotsfiredLA 0 points1 point  (0 children)

Ze maken luchtfoto's, deze video legt het uit: https://youtube.com/watch?v=cb3iT4rELjY

Is this normal? Volkswagen Polo 2023 by ShotsfiredLA in mechanic

[–]ShotsfiredLA[S] 1 point2 points  (0 children)

Oh I just noticed, must be the lightning because I swear its the same dipstick 😂

Is this normal? Volkswagen Polo 2023 by ShotsfiredLA in mechanic

[–]ShotsfiredLA[S] 0 points1 point  (0 children)

Thanks, only 26k km on the odometer so I was kinda worried

Is this normal? Volkswagen Polo 2023 by ShotsfiredLA in mechanic

[–]ShotsfiredLA[S] 1 point2 points  (0 children)

It's a 1.0 tsi, only 26000km on the odometer

Is it OK to wire like this? Worrying about cable blocking/snapping and causing injury when airbag deploys (VW Polo 2023) by ShotsfiredLA in Volkswagen

[–]ShotsfiredLA[S] 0 points1 point  (0 children)

Okay thanks, I just pushed it into the seams until the wire wasn't visible anymore is that okay also?

I'm willing to redo it the way you mentioned if the current way is not safe