Screenshot share not working - tasker plugin issue?

39 views
Skip to first unread message

Erik Carlin

unread,
Jun 2, 2023, 12:35:33 AM6/2/23
to Tasker
Hello Team, 

Seems to be the case that a task that I've had working for a while nicely just refuses to work now. I was able to take a screenshot on my Samsung phone and get it to AutoShare to Telegram using this task but it is no longer able to do so. Everytime I try I get unsupported attachment. If I manually select the file it seems to work but with the array variable it doesn't. 

Any thoughts? No error in the Tasker run log... just erroring out in Telegram.

Profile: Dasher Screenshot Share
     Event: File Modified [ File:DCIM/Screenshots/ Event:Create ]
     Application: Dasher
     State: BT Connected [ Name:LEXUS RX/LEXUS IS Address:* ]
   
   
   
    Enter Task: Send Latest Screenshot
    Settings: Run Both Together
   
    A1: List Files [
         Directory: DCIM/Screenshots
         Match: *.jpg
         Sort Select: Modification Date, Reverse
         Variable Array: %screenshots
         Use Global Namespace: On ]
   
    A2: AutoShare [
         Configuration: Package: org.telegram.messenger
         Class: org.telegram.ui.LaunchActivity
         App: AutoShare
         Action: Share
         MimeType: */*
         File: %screenshots1
         Timeout (Seconds): 10
         Structure Output (JSON, etc): On ]

I've tried putting %screenshots1 in the data area, in the file area..... I've done things like image/jpeg for the MIMETYPE, image/* */image... it honestly worked up until recently and I've been banging my head ever since.

Thanks!

Erik Carlin

unread,
Jun 2, 2023, 1:50:23 AM6/2/23
to Tasker
I have another task that takes the last photo taken in the camera directory, lists the latest one, AUTO OCRs it and puts it to a file - that all works fine. DCIM/Camera folder, not DCIM/Screenshots. The file path on both tasks gets written to and is found.... 

In the screenshot share task above, I've tried copying the @screenshots1 variable somewhere else like Downloads... it gets moved but then the AutoShare to telegram or other app fails with unsupported attachment again. I thought perhaps permission issues on DCIM/Screenshots etc. AutoShare warns of the directory if I choose that path and it prompts me to use another context:.... path if I am selecting one file or another vs the variable. 

Everything else logs fine with no errors in the run log but I cannot get this fixed. 

For reference, here's the working OCR task that uses the list files and %variable1 type sequence.

Thanks :)
Profile: Image OCR
     Event: File Modified [ File:DCIM/Camera/ Event:Create ]
   
   
   
    Enter Task: Image OCR
   
    A1: List Files [
         Directory: DCIM/Camera

         Sort Select: Modification Date, Reverse
         Variable Array: %images
         Use Global Namespace: On ]
   
    A2: AutoTools OCR [
         Configuration: Image: %images1
         Timeout (Seconds): 60

         Structure Output (JSON, etc): On ]
   
    A3: Flash [
         Text: %atocrvalue()
         Long: On
         Tasker Layout: On
         Continue Task Immediately: On
         Dismiss On Click: On ]
   
    A4: Write File [
         File: Documents/ocr.txt
         Text: %atocrvalue
         Append: On
         Add Newline: On ]

Erik Carlin

unread,
Jun 2, 2023, 3:19:39 PM6/2/23
to Tasker
I was able to get this error this time. 

13.16.12/LicenseCheckerTasker Checking cached only
13.16.12/LicenseCheckerTasker Cached status: Licensed
13.16.12/LicenseCheckerTasker Cached only: Licensed
13.16.12/ActionArgBundle key: android.intent.extra.SUBJECTSEND: replace <null> String value with null
13.16.12/ActionArgBundle key: IntentData: replace <null> String value with null
13.16.12/Variables doreplresult: |%screenshots1| -> |/storage/emulated/0/DCIM/Screenshots/Screenshot_20230602_080445_Gmail.jpg|
13.16.12/ActionArgBundle AutoShare: android.intent.extra.STREAMSEND: %screenshots1 -> /storage/emulated/0/DCIM/Screenshots/Screenshot_20230602_080445_Gmail.jpg
13.16.12/E FIRE PLUGIN: AutoShare / com.twofortyfouram.locale.intent.action.FIRE_SETTING: 13 bundle keys
13.16.12/E AutoShare: plugin comp: com.joaomgcd.autoshare/com.joaomgcd.autoshare.broadcastreceiver.IntentServiceFire
13.16.12/Ew add wait type Plugin1 time 10
13.16.12/Ew add wait type Plugin1 done
13.16.12/E handlePluginFinish: taskExeID: 1 result 3
13.16.12/E pending result code
13.16.12/E add wait task
13.16.22/E Error: 2
13.16.22/E Plugin did not respond before timing out. You can change the timeout value in the action's configuration.

Reply all
Reply to author
Forward
0 new messages