🐛 Add delay in commands

This commit is contained in:
Yann Bertrand 2021-12-20 18:28:14 +01:00
parent bc346eb9b5
commit d6d4da5df4
8 changed files with 8 additions and 0 deletions

View file

@ -46,6 +46,7 @@ module.exports = {
// Action!
await aperture.startRecording({ highlightClicks: true, cropArea })
await delay(200)
robot.moveMouseSmooth(pos2.x, pos2.y, 2)
await delay(1000)
robot.moveMouseSmooth(pos3.x, pos3.y, 5)

View file

@ -46,6 +46,7 @@ module.exports = {
// Action!
await aperture.startRecording({ highlightClicks: true, cropArea })
await delay(200)
robot.moveMouseSmooth(pos2.x, pos2.y, 2)
await delay(1000)
robot.moveMouseSmooth(pos3.x, pos3.y, 5)

View file

@ -46,6 +46,7 @@ module.exports = {
// Action!
await aperture.startRecording({ highlightClicks: true, cropArea })
await delay(200)
robot.moveMouseSmooth(pos2.x, pos2.y, 2)
await delay(1000)
robot.moveMouseSmooth(pos3.x, pos3.y, 5)

View file

@ -46,6 +46,7 @@ module.exports = {
// Action!
await aperture.startRecording({ highlightClicks: true, cropArea })
await delay(200)
robot.moveMouseSmooth(pos2.x, pos2.y, 2)
await delay(1000)
robot.moveMouseSmooth(pos3.x, pos3.y, 5)

View file

@ -46,6 +46,7 @@ module.exports = {
// Action!
await aperture.startRecording({ highlightClicks: true, cropArea })
await delay(200)
robot.moveMouseSmooth(pos2.x, pos2.y, 2)
await delay(1000)
robot.moveMouseSmooth(pos3.x, pos3.y, 5)

View file

@ -14,6 +14,7 @@ module.exports = {
'-string bottom', 'bottom',
'killall Dock'
)
.wait(1000)
.captureScreen(`${outputPath}/bottom-tmp.png`)
.deleteDefault('com.apple.dock', 'orientation', 'killall Dock')
.run()

View file

@ -14,6 +14,7 @@ module.exports = {
'-string left', 'left',
'killall Dock'
)
.wait(1000)
.captureScreen(`${outputPath}/left-tmp.png`)
.deleteDefault('com.apple.dock', 'orientation', 'killall Dock')
.run()

View file

@ -14,6 +14,7 @@ module.exports = {
'-string right', 'right',
'killall Dock'
)
.wait(1000)
.captureScreen(`${outputPath}/right-tmp.png`)
.deleteDefault('com.apple.dock', 'orientation', 'killall Dock')
.run()