Not sure which version of ots you are using, but this works for me in forgotten 1.3. I used the script that @Sarah Wesker but modified some lines to fit in my ots. I hope it helps!
local homeScroll = Action()
function homeScroll.onUse(player, item, fromPosition, target, toPosition, isHotkey)...