Own-Programming-Language-Tu.../examples/robot/paint_lines.own

20 lines
332 B
Scala
Raw Normal View History

2023-09-09 15:52:32 +03:00
use robot
2016-01-22 18:51:29 +02:00
pause = 5
xstep = 50 ystep = 5
startx = 50
starty = 400 + ystep / 2
2016-02-14 21:24:06 +02:00
for (y = 0, y < 300, y += ystep) {
2016-01-22 18:51:29 +02:00
mouseMove(startx, (starty+y))
mousePress(BUTTON1)
2016-02-14 21:24:06 +02:00
for (i = 0, i < 600, i += xstep) {
2016-01-22 18:51:29 +02:00
mouseMove((startx+i), (starty+y))
delay(pause)
}
mouseRelease(BUTTON1)
delay (pause*3)
}