I have been trying to get applescript to enter a letter and then press enter in Safari. Ive already looked up programs, but they dont seem to work. The text box I need to type into is inside a game, and the programs just reload the page. It isnt necessary to have it press enter, if I could have it click in a specific spot on the screen. The program ive tried is this...
tell application "Safari"
tell application "System Events" to keystroke "x" using command down
tell application "System Events" to key code 52 using command down
delay (random number from 1 to 10)