I need to simulate a fast triple home button press on my tab s2 to activate the"invert (negative) colours" (accessibility option).
Tried that with root command key input ,repeated 3 times,which works,yet more like 3 slow presses in a row

Any idea is appreciated