AutoInput Pixel color of a cropped image

Discussion in 'AutoApps' started by Singe, Apr 2, 2019.

  1. Singe

    Singe New Member

    Joined:
    Apr 2, 2019
    Messages:
    14
    Likes Received:
    0
    When using autoinput's screen capture, if I use the option to crop out most of the image, %aiscreenshotpixelcolor doesn't return anything. I've tried changing the pixel coordinates to reflect a new 0,0 of the cropped image and tried without changing, still nothing..

    If I don't crop the image first it works fine... Any ideas?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance
     
  3. Singe

    Singe New Member

    Joined:
    Apr 2, 2019
    Messages:
    14
    Likes Received:
    0
    Thanks for the reply, here is the description.. Also, I'm not seeing the file it is suppose to be capturing and cropping..

    Edit: OMG, I was googling tips on troubleshooting and discovered what the grey line next to the action means.. Doh, that doesn't help, however, with the action turned on, it still is doing the same thing.. :-(


    A1: Launch App [ App:Orna Data: Exclude From Recent Apps:Off Always Start New Copy:Off ]
    A2: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
    A3: Flash [ Text:Screenshot Long:On ]
    <check health>
    A4: [X] AutoInput Screen Capture [ Configuration:Screenshot Path: /storage/emulated/0/AutoInput/combathealth.png
    Crop : 256,1535,210,42
    Pixel Color : 361,1556 Timeout (Seconds):78 ]
    A5: Flash [ Text:%aiscreenshotpixelcolor
    %err
    %errmsg
    %aiscreenshotfile Long:On ]
    A6: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
     
    Last edited: Apr 5, 2019
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Does the color have a value if you set pixel color to 0,0?
     
  5. Singe

    Singe New Member

    Joined:
    Apr 2, 2019
    Messages:
    14
    Likes Received:
    0
    Yes it does.. I'm sure I can use that info to accomplish what I am trying to accomplish but is that the intended way for it to work?
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yes. :) The pixel coordinates are relative to the cropped image, not the full image :)
     
  7. Singe

    Singe New Member

    Joined:
    Apr 2, 2019
    Messages:
    14
    Likes Received:
    0
    Cool, thanks.. Thanks for the great app(s) as well!
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    No problem! :)
     
  9. Singe

    Singe New Member

    Joined:
    Apr 2, 2019
    Messages:
    14
    Likes Received:
    0
    One more question about pixel colors since you're here (were here anyway), is it possible to get multiple pixel colors with using just the one screenshot action?
     
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    It is not, sorry!
     

Share This Page