For autohotkey v2 (based on Windows rare shortcut with virtual F24 key):
; Win+F9 = Ctrl+Win+F24 (toggle touchpad) #F9::{ send "^#{F24}" msgbox 'Touchpad switch on/off by pressing Win+F9' }