This script sends SPACE key when you press Middle Click of your mouse. The function "_IsPressed" dont work like "HotKeySet", you can easily send 5 spaces or more while you keep pressing Middle Click and I want to send only one time the space key, not spamming/looping it. #include <misc.au3>
While 1
If _IsPressed(04) Then ;04 is Middle Click
Send("{SPACE}")
EndIf
Sleep(10)
WEnd