GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sangafabrice/shuffler: A simple component that helps shuffle a list of related objects like a playlist.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
Readme.md
Readme.md
 
 
setup.vbs
setup.vbs
 
 
shuffler-lib-template.wsc
shuffler-lib-template.wsc
 
 

Repository files navigation

The shuffler component

Author: Fabrice Sanga


The component is mainly built around the RandomSelect() function that selects an element from a list of objects randomly, as its name suggests. The selection proceeds similarly to a media player in shuffle mode. It avoids selecting an item that it had already picked til every item in the list is marked. Then the process restarts.

It works on any type of list, but for illustration purposes, it is restricted to Photos App Tiles, Desktop and Lockscreen Backgrounds, and the default Logon Picture.

An example of use:

With CreateObject("CustomUI.Shuffler")
    .WorkDir = "\Path\to\Example"           '(1)
    .Shuffle "DesktopBG"                    '(2)
    .Shuffle "LockScreenBG"                 
    .Shuffle "LogonPicture"                 
    .Shuffle "PhotosTile"                   
    .RefreshStartMenu                       '(3)
End With

(1) WorkDir is the root directory

(2) Shuffle is a sub that shuffles the items of the DesktopBG subfolder of the root

(3) RefreshStartMenu is a feature sub that makes the change available immediately and is needed for LogonPicture and PhotosTile

The filesystem:

    Example
        |--DesktopBG
        |--LockScreenBG
        |--LogonPicture
        |--PhotosTile

DesktopBG, LockScreenBG, PhotosTile contain image objects. PhotosTile contain subfolders of square images of 32px, 40px, 48px, 192px and 448px size. They are different sized-images of the same picture. The figure shows an example of those images.

About

A simple component that helps shuffle a list of related objects like a playlist.

Topics

desktop-backgroundlockscreen-backgroundlogon-picturepersonalizationphotos-app-tilevbscriptwindows-script-component

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.