I've seen some examples of menuHistory scripts here; but can't figure it out. I wonder if anyone can help, it'll be appreciated. btw, I use rev ent 4

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on tabkey
put the menuhistory of button 1 into whichTab
if whichTab < 4 then
add 1 to whichTab
else
put 1 into whichTab
end if
set the menuhistory of button 1 to whichTab
end tabkey
Code: Select all
on arrowKey tKey
if the shiftKey is down and tKey is "right" then
put the menuhistory of button 1 into tSwitch
if tSwitch < 4 then
add 1 to tSwitch
end if
set the menuhistory of button 1 to tSwitch
else if the shiftKey is down and tKey is "left" then
put the menuhistory of button 1 into tSwitch
if tSwitch > 1 then
subtract 1 from tSwitch
end if
set the menuhistory of button 1 to tSwitch
end if
end arrowKey