Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save lbleon/8a9b5d9c9371fda7aaae to your computer and use it in GitHub Desktop.

Select an option

Save lbleon/8a9b5d9c9371fda7aaae to your computer and use it in GitHub Desktop.

Revisions

  1. Shane Lawrence revised this gist Mar 26, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Microsoft Sculpt Mobile Keyboard Remap
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,7 @@ SendMode Input ; Recommended for new scripts due to its superior speed and reli
    SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

    ; OPTIONAL: For those who use Home/End more than PgUp/PgDown, this flips their use with the Fn key.
    ; If you want the buttons to function as they are, add a semicolon (;) to the beginning of each line below.
    Home::PgUp
    End::PgDn
    PgUp::Home
  2. Shane Lawrence revised this gist Feb 2, 2014. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions Microsoft Sculpt Mobile Keyboard Remap
    Original file line number Diff line number Diff line change
    @@ -3,51 +3,64 @@
    SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

    ; OPTIONAL: For those who use Home/End more than PgUp/PgDown, this flips their use with the Fn key.
    Home::PgUp
    End::PgDn
    PgUp::Home
    PgDn::End

    ; F1 key by default, Fn+F1 is now Play/Pause
    MEDIA_PLAY_PAUSE::F1
    F1::MEDIA_PLAY_PAUSE

    ; F2 key by default, Fn+F2 is now Mute/Unmute
    VOLUME_MUTE::F2
    F2::VOLUME_MUTE

    ; F3 key by default, Fn+F3 is now Volume Down
    VOLUME_DOWN::F3
    F3::VOLUME_DOWN

    ; F4 key by default, Fn+F4 is now Volume Up
    VOLUME_UP::F4
    F4::VOLUME_UP

    ; F5 key by default, Fn+F5 does nothing
    SendInput {F5}
    +#F21::
    return

    ; F6 key by default, Fn+F6 does nothing
    !#F21::
    SendInput {F6}
    return

    ; F7 key by default, Fn+F7 does nothing
    ^#F21::
    SendInput {F7}
    return

    ; F8 key by default, Fn+F8 does nothing
    #F21::
    SendInput {F8}
    return

    ; F9 key by default, Fn+F9 does nothing
    ^#BS::
    SendInput {F9}
    return

    ; F10 key by default, Fn+F10 does nothing
    ^#TAB::
    SendInput {F10}
    return

    ; F11 key by default, Fn+F11 does nothing
    !#F22::
    SendInput {F11}
    return

    ; F12 key by default, Fn+F12 does nothing
    ^#F23::
    SendInput {F12}
    return
  3. Shane Lawrence created this gist Feb 2, 2014.
    53 changes: 53 additions & 0 deletions Microsoft Sculpt Mobile Keyboard Remap
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
    #InstallKeybdHook
    SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

    Home::PgUp
    End::PgDn
    PgUp::Home
    PgDn::End

    MEDIA_PLAY_PAUSE::F1
    F1::MEDIA_PLAY_PAUSE

    VOLUME_MUTE::F2
    F2::VOLUME_MUTE

    VOLUME_DOWN::F3
    F3::VOLUME_DOWN

    VOLUME_UP::F4
    F4::VOLUME_UP

    SendInput {F5}
    +#F21::
    return

    !#F21::
    SendInput {F6}
    return

    ^#F21::
    SendInput {F7}
    return

    #F21::
    SendInput {F8}
    return

    ^#BS::
    SendInput {F9}
    return

    ^#TAB::
    SendInput {F10}
    return

    !#F22::
    SendInput {F11}
    return

    ^#F23::
    SendInput {F12}
    return