User Tools

Site Tools


script_page_indicator

====== About the script ====== * Purpose : display a page indicator * Author : 真鍋真一郎 (https://plus.google.com/u/0/107834936271668654361) * Link: https://plus.google.com/u/0/107834936271668654361/posts/8iMh8rX16JD (you need to join the community) ====== How to use the script ====== Assign this script to Desktop Position changed event, Put Shortcut labeled '---' and pin it. ====== Script code ====== <code> var d=LL.getCurrentDesktop(); var page=Math.round(d.getPositionX()/d.getWidth()); var a='----'.split(''); a[page]='+'; d.getItemByName('---').setLabel(a.join("")); </code>

script_page_indicator.txt · Last modified: 2014/04/05 12:06 by pierrox