From dcb3d31080d8721c52a3f45453238b7d74cc1041 Mon Sep 17 00:00:00 2001 From: jluk7 Date: Tue, 13 Dec 2022 00:52:09 -0500 Subject: [PATCH] Removing logic to click in middle of screen from 'send_message' function of core.py. Screen is already focused on textbox when WhatsApp is launched. Clicking middle of screen may click away from WhatsApp WebApp, resulting in inability to type or send message if window is not centered on screen. --- pywhatkit/core/core.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pywhatkit/core/core.py b/pywhatkit/core/core.py index 5b51d8f..df89bb9 100644 --- a/pywhatkit/core/core.py +++ b/pywhatkit/core/core.py @@ -75,7 +75,6 @@ def send_message(message: str, receiver: str, wait_time: int) -> None: _web(receiver=receiver, message=message) time.sleep(7) - click(WIDTH / 2, HEIGHT / 2 + 15) time.sleep(wait_time - 7) if not check_number(number=receiver): for char in message: