Pokemon-Go-Controller icon indicating copy to clipboard operation
Pokemon-Go-Controller copied to clipboard

Use applescript instead of autoclicker

Open chrisnordqvist opened this issue 8 years ago • 3 comments

The following will tell xCode to update the location without hijacking the mouse:

repeat while true

    tell application "System Events" to tell process "Xcode"
        click menu item "pokemonLocation" of menu 1 of menu item "Simulate Location" of menu 1 of menu bar item "Debug" of menu bar 1

    end tell

end repeat

Just open with script editor and run :)

chrisnordqvist avatar Jul 18 '16 10:07 chrisnordqvist

I'm getting this error when I try to use this script: System Events got an error: Can’t get menu item "pokemonLocation" of menu 1 of menu item "Simulate Location" of menu 1 of menu bar item "Debug" of menu bar 1 of process "Xcode".

Any suggestions?

chriscombs avatar Jul 20 '16 09:07 chriscombs

Change "pokemonLocation" to your project name if not.

ysrotciv avatar Jul 20 '16 12:07 ysrotciv

delete first two '1' if it's not working

    click menu item "pokemonLocation" of menu of menu item "Simulate Location" of menu of menu bar item "Debug" of menu bar 1

chijinbo avatar Jul 22 '16 03:07 chijinbo