Skip to content

Instantly share code, notes, and snippets.

@navhaxs
Last active December 6, 2023 04:45
Show Gist options
  • Save navhaxs/5bd16258f5383db3e941eb25377e3bff to your computer and use it in GitHub Desktop.
Save navhaxs/5bd16258f5383db3e941eb25377e3bff to your computer and use it in GitHub Desktop.
;#NoTrayIcon
;#SingleInstance force
;#Persistent
;#InstallKeybdHook
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Logitech T650 mappings for Windows 10.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Requires SetPoint to be installed AND running.
;
; Comment out any conflicting hotkeys that you actually use.
; Fortunately, Logitech sends *numpad arrow keys* rather than normal arrow keys
; which aren't commonly used commonly, so we can easily override most of them without
; too much conflict with normal keyboard usage.
; Four finger swipe left ---> Virtual Desktop Switch Left
<#NumpadLeft::
Send {LWin down}{LCtrl down}{Left}{LWin up}{LCtrl up}
Return
; Four finger swipe right ---> Virtual Desktop Switch Right
<#NumpadRight::
Send {LWin down}{LCtrl down}{Right}{LWin up}{LCtrl up}
Return
; Four finger swipe up ---> Task View
; (only works when active window is NOT minimised)
<#NumpadUp::
Send {LWin down}{Tab down}{LWin up}{Tab up}
Return
; Uncomment if you want to override Win + D
; Thee finger swipe down --> Task View
; (I can't seem to catch four finger down)
;<#d::
; Send {LWin down}{Tab down}{LWin up}{Tab up}
; Return
; One finger from right edge in
; Notification Centre
<#c::
Send {LWin down}{a}{LWin up}
Return
@terrybao
Copy link

hi, how to use this menualtgr.ahk file ? Could you introduce much more info ?
I saw the blog, but still not clear how to do ...
Thanks in advance.

@navhaxs
Copy link
Author

navhaxs commented Apr 15, 2017

Hi @terrybao, the menualtgr.ahk file is a AutoHotKey script. You will need to download AutoHotKey from https://autohotkey.com/. Once installed, you should be able to double-click menualtgr.ahk to run the script, the gestures should then work.
There are some instructions on the internet for how to get the AutoHotKey script to run at startup.

Hope this helps. I'll try update the blog post with more stuff when I have time.

@petebytes
Copy link

Awesome thanks - great device, crappy software. You saved me from junking it.

@dAKirby309
Copy link

dAKirby309 commented Sep 11, 2017

Hi, thanks for the script though I'm still not sure how to determine what key corresponds to what gesture on the touchpad. Is there a way to find out? I want to know what key every gesture uses...

I vaguely understand, like numpad up/left/down/right correspond to four-finger swipe up/left/down/right? But I don't know the others.

@navhaxs
Copy link
Author

navhaxs commented Jan 21, 2018

@dAKirby309 commenting on github gist pages don't actually generate notifications :/

But to answer your question, I used https://autohotkey.com/docs/commands/KeyHistory.htm to monitor what keys SetPoint was sending

@titwozzang
Copy link

can I get the document for other variable(<#NumpadDown etc.)?

@DanLilie
Copy link

Hey Navhaxs,

thanks for the work, but unfortunately the script isn't working anymore. I downloaded autohotkey and run the script but no changes at all. The gestures simply don't work and if I open setpoint I also cannot see advanced option. May you can advise, if there is still a chance to make it work?

Many thanks in advance,
BR Dan

@DanLilie
Copy link

Okay I needed to activate the compatible mode for SetPoint to win7 to make it working. Anyhow, would it be possible to put the shift between the virtual desktop to the three finger gestures? I'm to stupid to manage the four finger swipe, thus I tried to edit your script but it wasn't working.

If you have any advise, please let me know.
BR Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment