-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
#!/bin/bash | ||
xte 'key Return' | ||
xte 'usleep 100000' | ||
xte 'key Return' | ||
xte 'usleep 100000' | ||
xte 'key Up' | ||
xte 'usleep 100000' | ||
xte 'key Up' | ||
xte 'usleep 100000' | ||
xte 'key Return' | ||
xte 'usleep 100000' | ||
xte 'key Return' | ||
|
||
set -eu | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
This comment has been minimized.
Sorry, something went wrong.
bryan078
|
||
window=`xdotool search --name $1 | head -n 1` | ||
|
||
xdotool key --window $window Return | ||
sleep 0.1 | ||
xdotool key --window $window Return | ||
sleep 0.1 | ||
xdotool key --window $window Up | ||
sleep 0.1 | ||
xdotool key --window $window Up | ||
sleep 0.1 | ||
xdotool key --window $window Return | ||
sleep 0.1 | ||
xdotool key --window $window Return | ||
# Uncomment for using vision as input | ||
# sleep 0.1 | ||
# xdotool key --window $window F2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-xte 'key Return'
-xte 'usleep 100000'
-xte 'key Return'
-xte 'usleep 100000'
-xte 'key Up'
-xte 'usleep 100000'
-xte 'key Up'
-xte 'usleep 100000'
-xte 'key Return'
-xte 'usleep 100000'
-xte 'key Return'