Quote
The first time I used $url the beta froze for a few seconds until $url returned $null when the default browser was I.E.

Right. Apparently, this is because when I first added support for this, it took so long to complete on the initial run that I decided to add a timeout in case there was an issue. If it took longer than three seconds, $url would give up the search. I am going to remove the timeout. This means that from the next beta, if you use $url, mIRC could freeze for an undetermined amount of time.

Then again. I just found out that Microsoft Edge runs continuously in the background due to the Windows 10 background apps feature. This means that if you have Edge as your default browser but are currently using another browser, $url will find Edge running and will try to retrieve the active URL from it, which will be empty. The only solution so far is that if the returned URL is empty, mIRC will continue searching for other matching Window class names, eg. MozillaWindowClass for Firefox, etc., and if they are available, it will search them as well. Alternatively, mIRC could always leave Edge till last when searching and always give priority to other browser class names...

This is truly one giant hack.