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