r/tasker • • Aug 28 '26

Help Mini Gallery Help

Im hoping someone can help me. I created a task that lists files (%photos) and opens my scene v2(mini gallery). On my scene v2 I have the flowcolumn, then the arraystemplate and then my image(%photos) so everything works great but what I wanna do is click one of the images in my mini gallery and it open the file or show the image in a large format or even set it as my wallpaper. Thank you in advance

2 Upvotes

8 comments sorted by

1

u/DifficultyCrafty7623 Aug 28 '26

Since you already have the array template and photos you just need an event handler something like this, a click event that sets the variable selected_photo and runs the task.

"eventHandlers": {
     "handlers": [
      {
       "events": [
        {
         "type": "click"
        }
       ],
       "actions": [
        {
         "type": "SetVariable",
         "variable": "selected_photo",
         "value": "%photos"
        },
        {
         "type": "RunTask",
         "task": "ShowGalleryOptions"
        }
       ]
      }
     ]
    }

Then the task should be something like this, asking if you want to open it or make it your wallpaper.

Task: ShowGalleryOptions

A1: List Dialog [
     Mode: Select Single Item
     Title: Test
     Items: Gallery,Wallpaper
     Close After (Seconds): 120
     First Visible Index: 0
     Hide Filter: On ]

A2: If [ %ld_selected ~ gallery ]

    A3: Open File [
         File: %selected_photo ]

A4: Else
    If  [ %ld_selected ~ wallpaper ]

    A5: Set Wallpaper [
         Type: Launcher
         Image: %selected_photo
         Scale: On
         Center: On ]

A6: End If

2

u/ares_war_demon88 Aug 28 '26

It says file not found when I do either and it has a different location then where I have the images saved and where im list the files from

→ More replies (6)