View Single Post
Old 1st May 2017, 16:14   #1
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 298
Toggle songticker scrolling

The attached tickertoggleleftclick.m is a script to toggle songticker scrolling on and off. It is modified from JimmySmith's tickertogglerightclick.m.

The songticker starts up scrolling and when you left-click on it, it keeps on scrolling with a short message saying "Scrolling: On". When you left-click on it again, it stops scrolling with a short message saying "Scrolling: Off". So the first click doesn't toggle the scrolling off, it just reports the original state.

How do you modify the script so that the first click and each subsequent odd click stops the scrolling and that the second click and each subsequent even click restarts it? I am attaching both the script and a test skin.
Attached Files
File Type: m tickertoggleleftclick.m (3.6 KB, 47 views)
File Type: wal Study_Toggle.wal (84.3 KB, 56 views)
ariszlo is offline   Reply With Quote