Fix
[mirrors/Programs.git] / bash / x-mouse / pixart.sh
CommitLineData
21c4e167
H
1mm() {
2 for i in $(seq 0 10); do
3 xdotool mousemove_relative -- $1 $2;
4 sleep 0.00;
5 done;
6}
7
8#sleep 5; xdotool mousedown 1; mm 2 1; mm 2 -1; mm -2 -1; mm -2 1; mm 0 2; mm 2 1; mm 0 -2; mm 0 2; mm 2 -1; mm 0 -2; xdotool mouseup 1
9#sleep 5; xdotool mousedown 1; xdotool mousemove_relative 100 100; xdotool mouseup 1
10
11down() { xdotool mousedown 1; }
12up() { xdotool mouseup 1; }
13mvs() { xdotool mousemove_relative -- $(bc<<<$1*$3) $(bc<<<$2*$3); }
14mv() { mvs $1 $2 20; }
15
16sleep 3;
17down;
18mv 2 1;
19mv 2 -1;
20mv -2 -1;
21mv -2 1;
22mv 0 1;
23mv 2 1;
24mv 0 -1;
25mv 0 1;
26mv 2 -1;
27mv 0 -1;
28up;
This page took 1.284594 seconds and 4 git commands to generate.