diff --git a/aegisub b/aegisub index 2604c9e..4f19d8c 100755 --- a/aegisub +++ b/aegisub @@ -52,12 +52,18 @@ xdo() { xdotool click 1 } -# type key $1 in the keyboard +# press a key $1 in the keyboard key() { sleep "${SLEEP_DURATION}" xdotool key "$1" } +# type $1 in the keyboard +type() { + sleep "${SLEEP_DURATION}" + xdotool type "$1" +} + # File selector. The extention of file is $1 select_file() { # Create cache file if it doesn't exist @@ -278,14 +284,10 @@ case "${PLUGIN_NAME}" in xdo 705 536 # Click on 7 xdo 734 367 # Click on Scale x key ctrl+a - key 1 - key 0 - key 0 + type 100 xdo 738 399 # Click on Scale y key ctrl+a - key 1 - key 0 - key 0 + type 100 xdo 730 436 # Click on OK Button asswipe ;; diff --git a/template b/template index 0a1234a..e97959b 100755 --- a/template +++ b/template @@ -30,12 +30,18 @@ xdo() { xdotool click 1 } -# type key $1 in the keyboard +# press a key $1 in the keyboard key() { sleep "${SLEEP_DURATION}" xdotool key "$1" } +# type $1 in the keyboard +type() { + sleep "${SLEEP_DURATION}" + xdotool type "$1" +} + # File selector. The extention of file is $1 select_file() { # Create cache file if it doesn't exist