@MAB-Tech There is too little information to assume anything.
Please answer the question, or better yet, attach the project that is causing the problem to the forum's private messages.
[HELP] Proton.me Captcha - How to Map Captcha Solution Coordinates to Browser Viewport for Drag-and-Drop in BAS
-
Hello BAS Community,
I’m working on a project where I need to solve a slider captcha (like a puzzle piece that must be dragged into a hole). I have an external solver that gives me the coordinates of the hole relative to the captcha image (let’s call these RESULT_X and RESULT_Y). However, I’m struggling with how to convert these coordinates to the browser viewport coordinates so I can use BAS’s mouse actions to drag and drop the puzzle piece correctly.
What I Have:
The captcha image is displayed in the browser.
My solver gives me the coordinates of the hole (RESULT_X, RESULT_Y) relative to the original image size (e.g., 300x150).
I can get the displayed image’s position and size in the browser using BAS’s “Get Element Coordinates” and “Get Element Size” actions:
IMG_X, IMG_Y = top-left corner of the image in the browser window
WIDTH, HEIGHT = displayed width and height of the image (may be different from the original image size if scaled)
The original image size (ORIG_WIDTH, ORIG_HEIGHT) is known (from the file or solver).
What I Need:
I want to move the mouse (using BAS) from the puzzle piece’s starting position to the hole, but I need to map the solver’s coordinates to the actual browser window coordinates.

