Macro command to detect disconnection

Not sure this is possible but I’d like to create a macro capable of detecting that I’m disconnected.

Here’s the thing… I don’t know why when I’m playing and flying for long distances, my game disconnects but my character remains online and flying. Once I reach the destination, I realize I’m already disconnected and I need to exit the game, reconnect and when I come back I’m like flying where I was 5 minutes ago. It’s very annoying… and it happens a lot.

I also contacted the Blizzard support a few times but they do nothing but ask me to reinstall the game. Tried that a lot of times and the bug persists. I’m done with them, and trying to mitigate losing time myself.

So, when I need to fly for long distances, I usually open my bag and drag an arbitraty item. If the item doesn’t move to another slot, it means I’m disconnected, so I close the game and save some time rather than waiting until landing.

I’m wondering if there’s any sort of command I can run (that could be turned into a macro) that detects if I’m still online… I can make a macro to move items in the bag and identify if they’re moved or not to determine whether I’m still connected, but it sounds like a big workaround.

Any thougths?

/run print(UnitIsConnected("player") and "Connected YAY!" or "Disonnected BOOO!")

Corrected.

except now it has smart quotes lol

1 Like

And the Forum gods laughed at your feeble attempts at fixing smart quotes " "
Mwa hahahahahahahaha

Wow. I literally used the forum “quote” function on that part of the post and it swapped the quotes to smart quotes.

It didn’t occur to me to even look.

Hahahahah.

I wasn’t fixing the quotes. I was fixing the misspelling of Disconnected (which Fizzie has fixed in his post now).

:slight_smile:

Nope, Fizz’s is still misspelled. lol

<<facepalm>>

Well, this has been just a comedy of errors.

:slight_smile:

Maybe it was spelled that way intentionally… maybe it wasn’t. We’ll never kno.

Thank you very much, guys!! WAY better than my current method!