Xclickrelative does not see the red and green boxes i have drawn

Can you export the macro as ZIP file and post it here? Then we can inspect the image and see why the box detection fails.

In general the pink/green box detection works on HiDPI screens. See for example here: How to automate 2-factor logins with RPA (macro runs on 168dpi monitor)