Created
December 21, 2023 22:00
-
-
Save 0187773933/8dd9aa5df04e74b4066e8e3dba557f0e to your computer and use it in GitHub Desktop.
Wow Opener and Login
This file contains hidden or 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
#!/bin/bash | |
open -a "/Applications/World of Warcraft/_classic_era_/World of Warcraft Classic.app" | |
sleep 4 | |
username="asdf" | |
password="fdsa" | |
osascript -e " | |
tell application \"World of Warcraft Classic\" to activate | |
on x_type(x_text, delay_time) | |
repeat with x_char in x_text | |
tell application \"System Events\" to keystroke x_char | |
delay delay_time | |
end repeat | |
end x_type | |
x_type(\"$username\", 0.2) | |
tell application \"System Events\" to keystroke tab | |
x_type(\"$password\", 0.2) | |
tell application \"System Events\" to keystroke return | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment