I tried many answers on stackoverflow and other websites but all of them actually move my mouse cursor.
I'm looking for a way to click in a position (x, y) without actually moving my mouse cursor.
Also I want to run it in a Windows RDP, so that when I exit the RDP, it still runs and clicks on it.
I tried python modules like pyautogui, mouse, clickpy and pymouse but I failed.
Do you help me for this?
This is my simple HTML/JS code if you intend to test with:
<!DOCTYPE html>
<html>
<head>
<script>
var clicks = 0;
function myFunction() {
clicks += 1;
document.getElementById("demo").innerHTML = clicks;
}
</script>
</head>
<body>
<p>Click the button to trigger a function.</p>
<button onclick="myFunction()">Click me</button>
<p id="demo"></p>
</body>
</html>