How to generate 5 Image objects or Buttons using code (maybe Java) in Tasker?

Discussion in 'Tasker Guides / Examples / Ideas Forum' started by darkpixie, Oct 8, 2017.

  1. darkpixie

    darkpixie New Member

    Joined:
    Oct 8, 2017
    Messages:
    1
    Likes Received:
    0
    When creating for example image by code, there is some code snippet inside. I wanted to replace the x position in there with variable PosX, which I would like to set beforehand. Unfortunately the code does not recognize nested variables.

    What I wanted to achieve is some kind of a line made from images in form of rectangles automatically after I click the button or start a task.

    I would like to set the distance between rectangles as well as their size, but Tasker is so mysterious with the nested Java code for image and variable PosX and PosY don't work inside.

    Any ideas? Thanks.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Do you mean in a scene? If you're willing to go into Java code I suggest you whip up a quick web screen to do that or use one of the presets :)
     

Share This Page