This script was only designed to make double clicking "too fast" impossible. Since Buggy Mice send clicks impossibly fast, that's what I went after to block. So, this particular script, probably can't help your case (wasn't designed for it).
ehy wrote:
...when I select a group of units with rectangle selection, it randomly registers "the group selection" as a double click which makes my troops accidentally move when I don't want them to.
...you experience this problem on 2 different systems, with 2 different mice?
Assuming the "rectangle selection" is initiated by left clicking & holding, dragging & letting go. The thing I'd need to handle/block is a "double click" happening too fast after letting go.
Does it "double click" every time you select the troops or most/some of the time?...oh "it randomly registers"...hrm, I might need to create a script to log mouse activity & have you press some key when it "does it right" & "does it wrong" (when I'm analyzing the log, I'd need to see the correct & incorrect behavior). For example, you would press F3 (to log before the problem), then select the troops, then press F1 to log that it didn't move the troops...or press F2 to log that it did move the troops...then you would repeat that 5-10 times, so it logs both ways...remember, all of that is based on a script I need to write 1st, but if the logs show something obvious to block, then I can help!
This might need more research. Are there any other RTS games that do this? It may just be the game...or even an option/preference in the game ("move troops on selection"?), since it does it on 2 of your computers & not on other peoples.