I don't understand exactly what you want, but maybe this concept/princip:
Func body2()
While 1
Sleep(500)
$red = PixelSearch(111, 264, 146, 288, 0xFF290C)
$red_ok = Not @error
If $red_ok Then
Sleep(200)
MouseWheel("down", 10)
Sleep(400)
ContinueLoop
EndIf
$white = PixelSearch(103, 218, 141, 241, 0xFFFFFF)
$white_ok = Not @error
If $white_ok Then
Sleep(200)
MouseMove(123, 243, 2)
Sleep(100)
MouseDown("left")
Sleep(300)
MouseUp("left")
Sleep(100)
ExitLoop
EndIf
If Not ($red_ok Or $white_ok) Then
Sleep(300)
MouseWheel("up", 10)
Sleep(300)
MouseWheel("down", 10)
Sleep(1000)
EndIf
WEnd
EndFunc ;==>body2