iam4x / pokemongo-webspoof

👾 Play Pokémon Go from your Mac
2.14k stars 228 forks source link

Script Error [Resolved] #163

Open Gernatch opened 8 years ago

Gernatch commented 8 years ago

Anyone had this issue yet? I wasn't able to find it searching by name.

iPhone = iOS10 MacBook = El Capitain iMac = Sierra

Same issue with both.

screen shot 2016-07-21 at 10 14 43 pm

I added Scripting under Privacy already. That's not the issue. This sucks because I can't use the arrows to move. Thanks for any help.

Gernatch commented 8 years ago

Oh... Didn't mention. Xcode 8. I bet that is the problem. It seems like the names of the UI elements may have changed.

Anyone know if I'm right? If so, what would the names be?

Current Script: 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

Abeldvlpr commented 8 years ago

If you go by yourself in Debug > Simulate location, do you see pokemonLocation ?

dickverbunt commented 8 years ago

Have the same issue with Xcode 7.3.1. I do see the menu item pokemonLocation.

It couldn't find the item. Going the the "Simulate Location" menu works. Also tried setting menu item 1 but also didn't work.

Gernatch commented 8 years ago

I originally thought it was a script issue. However I never made a single change to the script to cause it to work. I'm puzzled. Hopefully I will have time to mess with it this evening.

Did you try disabling he randomization of movement? Just curious.

On Jul 22, 2016, at 9:57 AM, Dick Verbunt notifications@github.com wrote:

Have the same issue with Xcode 7.3.1. I do see the menu item pokemonLocation.

It couldn't find the item. Going the the "Simulate Location" menu works. Also tried setting menu item 1 but also didn't work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Gernatch commented 8 years ago

Yes. It works fine when clicking it. This is how I was playing for a while. I would move, then manually click it to actualize my move.

For some reason it started working last night. The "only thing" I did was disable the randomization of my movements. It worked immediate after. Not sure yet if that's what fixed it or if it was just coincidence.

Also noticed if you make the map full screen, it doesn't work. That makes sense since the Xcode UI isn't visible. Just a side note in case someone tries this. Not a bug. It's just how Apple Script works I do believe.

On Jul 22, 2016, at 7:01 AM, Abel Ingrand notifications@github.com wrote:

If you go by yourself in Debug > Simulate location, do you see pokemonLocation ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dickverbunt commented 8 years ago

Tried disabling the randomization. But didn't work. If you isolate the script and try to run it it's not working. You get the same error.

So it doesn't have anything to do with the randomization I believe. But still strange that it started to work for your.

Gernatch commented 8 years ago

That's right. I did isolate the script too in my troubleshooting. Not sure yet how it started working. Will try working on it later since I have the best of both worlds.

On Jul 22, 2016, at 12:40 PM, Dick Verbunt notifications@github.com wrote:

Tried disabling the randomization. But didn't work. If you isolate the script and try to run it it's not working. You get the same error.

So it doesn't have anything to do with the randomization I believe. But still strange that it started to work for your.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

zekkd commented 8 years ago

I got the same problem.

iOS 9 El Capitain

Gernatch commented 8 years ago

I've resolved the issue for myself. 3 simple steps.

1) Make sure to add Script Editor under Security and Privacy > Privacy > (Unlock - lower left) > Browse to Script Editor (Under Applications > Utilities). Make sure it is checked. screen shot 2016-07-22 at 10 17 14 pm

2) Run this command: sudo touch /private/var/db/.AccessibilityAPIEnabled

3) Restart the pokemongo-webspoof.app.

Note: Worked for me on Sierra/iOS10

Gernatch commented 8 years ago

FYI. Not sure if step 1 is absolutely required. I disabled it at one point and the errors came back. Leaving mine checked.

dickverbunt commented 8 years ago

Didn't work for me.

Gernatch commented 8 years ago

That's odd. Worked on 2 computers for me. However when I tried running the script alone while the game was running, I still got the error. Are you getting the error in the game or just in the script?

On Jul 23, 2016, at 4:02 AM, Dick Verbunt notifications@github.com wrote:

Didn't work for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dickverbunt commented 8 years ago

The error in map screen of pokemongo-webspoof. Also when I try to run it from the script editor I get the same error.