mirror of
https://github.com/yannbertrand/macos-defaults
synced 2024-11-14 23:57:07 +00:00
🐛 Add delay in commands
This commit is contained in:
parent
bc346eb9b5
commit
d6d4da5df4
8 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue