Been a while since I contributed some code in this section of the forum ... mostly because I'm still using older versions of AutoIt.
However, I recently started using the following function, as I thought it was a good idea. I'm sharing it for the same reasons, especially in light of the fact, that...