How do I enable or disable shiftlock though script?

DId you ever find the answer for this?