global knobvolumeQuartList, ChangeHere, nextchange, knoblocTwoList
if (the mouseH > getAt(knoblocTwoList, 1)) and (the mouseH < getAt(knoblocTwoList, 2)) and (the mouseV > getAt(knoblocTwoList, 3)) and (the mouseV < getAt(knoblocTwoList, 4)) then
repeat while (the mouseH > getAt(knoblocTwoList, 1)) and (the mouseH < getAt(knoblocTwoList, 2)) and (the mouseV > getAt(knoblocTwoList, 3)) and (the mouseV < getAt(knoblocTwoList, 4))
cursor([33, 34])
repeat with t = 1 to count(knobvolumeQuartList)
if (the mouseH > getAt(getAt(knobvolumeQuartList, t), 1)) and (the mouseH < getAt(getAt(knobvolumeQuartList, t), 2)) and (the mouseV > getAt(getAt(knobvolumeQuartList, t), 3)) and (the mouseV < getAt(getAt(knobvolumeQuartList, t), 4)) then
set ChangeHere to t
repeat while (the mouseH > getAt(getAt(knobvolumeQuartList, t), 1)) and (the mouseH < getAt(getAt(knobvolumeQuartList, t), 2)) and (the mouseV > getAt(getAt(knobvolumeQuartList, t), 3)) and (the mouseV < getAt(getAt(knobvolumeQuartList, t), 4))
if ChangeHere <> nextchange then
if ((ChangeHere = 1) and (nextchange = 4)) or (ChangeHere > nextchange) then
if (ChangeHere = 4) and (nextchange = 1) then
SelectAntiClockWISE(5)
else
SelectClockWISE(5)
end if
else
if ((ChangeHere = 4) and (nextchange = 1)) or (ChangeHere < nextchange) then