It still fails.
Just press shift+alt+d to pause/play it, but it you press whelldown, then it crashes.
#include <MouseSetOnEvent_UDF.au3>
#include <iTunesUDF.au3>
_iTunes_Start()
HotKeySet("{Esc}", "quit")
HotKeySet("+!d", "PausePlay")
HotKeySet("{MEDIA_PLAY_PAUSE}", "PausePlay")
HotKeySet("{MEDIA_NEXT}","trackNext")
_MouseSetOnEvent( $MOUSE_WHELLDOWN_EVENT , "PausePlay")
while 1
sleep (1000)
WEnd
Func PausePlay()
$iTunesApp.PlayPause
EndFunc
Func trackNext()
_iTunes_Next()
EndFunc
Func quit()
_iTunes_Quit()
_MouseSetOnEvent($MOUSE_WHELLDOWN_EVENT)
Exit
EndFunc