I assume you've tried using PageUp and PageDown for scrolling, and setting Count=8 under [mPath] ?moshi wrote:what would be really nice would be a number option for the IndexUp/IndexDown command measures.
for example i have icons arrangend in arranged in a 8x4 (Count=32) grid. i use the mouse-wheel to scroll up/down rows.
so this is my current code:this works, but it seems to be pretty heavy stuff for Rainmeter to handle. it sometimes freezes.Code: Select all
MouseScrollDownAction=[!MoveMeter "([Scrollbar:X])" "(([Scrollbar:Y])+([MeasureStepHeight])) < (((([Index1Icon:Y])-10)+550)-([MeasureScrollbarHeight])) ? (([Scrollbar:Y])+([MeasureStepHeight])) : ([Scrollbar:Y])" Scrollbar][!CommandMeasure mPath "IndexDown"][!CommandMeasure mPath "IndexDown"][!CommandMeasure mPath "IndexDown"][!CommandMeasure mPath "IndexDown"][!CommandMeasure mPath "IndexDown"][!CommandMeasure mPath "IndexDown"][!CommandMeasure mPath "IndexDown"][!CommandMeasure mPath "IndexDown"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
wouldn't something like [!CommandMeasure mPath "IndexDown" 8] be lighter than executing than running the same command eight times?
I think I understand what you're trying to do. I noticed that you're making a scrollbar in your code? Are you aware that Brain has a lua script for scrolling with FileView now? You can find an example either somewhere in this thread, or in my signature skin. That would take some load off of Rainmeter with all of those section variables and measures.
I like your idea. [!CommandMeasure mPath "PageUp"] could be replaced with [!CommandMeasure mPath "IndexUp" #COUNT#]. It would do the same thing, but if you wanted to scroll more than 1 at a time, but less than a page, it'd be easy to swap around the values by just changing the value of count.