Skip to content

Instantly share code, notes, and snippets.

@0187773933
Created December 21, 2023 22:00
Show Gist options
  • Save 0187773933/8dd9aa5df04e74b4066e8e3dba557f0e to your computer and use it in GitHub Desktop.
Save 0187773933/8dd9aa5df04e74b4066e8e3dba557f0e to your computer and use it in GitHub Desktop.
Wow Opener and Login
#!/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