Problem with click

LES121

New member
Hey there, created an automatisation which should click a random generated XY coordinates in specific area. Script generates two variables, both decimal Xv1 and Yv1, which then gets a randomly generated numbers from this specific area, but click never appear on screen, where is the problem hides?

Logs droped bellow:
 

Attachments

  • IMG_20240505_183914.jpg
    IMG_20240505_183914.jpg
    201.4 KB · Views: 12

Anatolikow777

New member
мне очень нравится и хочу попробовать себя как создатель програм для Android phone
 

Shiffo

Member
Why are you using decimal instead of integer?
I think you are trying to click xv and yv values.
You should use x,y values wich are integer
Tell me if I'm mistaken. Hope it helps! 😄
 

dhj49er

Well-known member
Hey there, created an automatisation which should click a random generated XY coordinates in specific area. Script generates two variables, both decimal Xv1 and Yv1, which then gets a randomly generated numbers from this specific area, but click never appear on screen, where is the problem hides?

Logs droped bellow:
I think click x,y requires integer values.
 

LES121

New member
Why are you using decimal instead of integer?
I think you are trying to click xv and yv values.
You should use x,y values wich are integer
Tell me if I'm mistaken. Hope it helps! 😄
Also you are wrong bcz wiki says others, file attached:
 

Attachments

  • Screenshot_2024-05-05-16-42-08-207_com.android.chrome.jpg
    Screenshot_2024-05-05-16-42-08-207_com.android.chrome.jpg
    442.2 KB · Views: 10

Shiffo

Member
Nope, droped screenshot above, also tried on other phone, all works fine with decimal. Interested why click didn't appear even if log says another.
Do clicks work in general for you? Like if you define de parameters manually?
If not try re-enabling macrodroid ui interaction accessibility service
 

Shiffo

Member
I wrote this test macro, and it works for me. But its not clicking where its suppoused to. I will keep testing
i'll tell you if i find anything
 

Attachments

  • Screenshot_20240505-160650_MacroDroid.jpg
    Screenshot_20240505-160650_MacroDroid.jpg
    181.1 KB · Views: 8

LES121

New member
Yep it works, only when random generated it didn't work
Also tried with int type, all works fine, on another two phones it taps, but not in this area, I see it opens notification bar, probably it touches 0 both on X and Y coordinates. Also even Wiki says X,Y supports decimal, you can't add decimal type by input from keyboard, I think Macrodroid just didn't work fine with decimal type😮‍💨
 

Shiffo

Member
Also tried with int type, all works fine, on another two phones it taps, but not in this area, I see it opens notification bar, probably it touches 0 both on X and Y coordinates. Also even Wiki says X,Y supports decimal, you can't add decimal type by input from keyboard, I think Macrodroid just didn't work fine with decimal type😮‍💨
Same here. Decimal values clicks 0
 

LES121

New member
Thinking about wiki's notice that decimal supported for XY, what about if it's supported but by % type not by specified XY coordinates🤔

Example:
Screen width 720 PX, then 360px will be 50% and 360,72 will be 50,1%
 

MacroDroidDev

Administrator
Staff member
The action will only use integer values so using a decimal is pointless, but never the less is should work with a decimal variable (and just convert to an integer). I will take a look and see if there is something wrong with the handling here.
 
Top