Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Automatic Message Sending Issue #323

Merged
merged 3 commits into from
Mar 31, 2024

Conversation

viditpandey06
Copy link
Collaborator

Title: Fix Automatic Message Sending Issue

Description:
This pull request addresses the issue reported by @viditpandey06 regarding the automatic sending of messages using PyWhatKit. Previously, although messages were typed into the text box, the send key was not pressed automatically or most likely pressed but not effective due to change in active window.

Changes Made:

  • Implemented two functions, get_default_browser and set_foremost_process, to actively shift the window of the WhatsApp tab to an active state.
  • This adjustment enables the "Enter" key to be pressed automatically, facilitating the sending of messages seamlessly.

Steps Taken:

  1. Created get_default_browser function to identify the default browser.
  2. Implemented set_foremost_process function to bring the WhatsApp tab to the forefront.
  3. Integrated these functions into the message-sending process to ensure smooth execution.

Additional Information:

  • Tested the fix on:
    • Operating System: Windows 11
    • Browsers: Microsoft Edge, Google Chrome,Firefox
    • Python Version: 3.11
    • PyWhatKit Version: 5.2

Closing Note:
This PR aims to enhance the functionality of PyWhatKit by resolving the reported issue and ensuring that messages are sent automatically without any manual intervention.

viditpandey06 and others added 3 commits March 24, 2024 20:34
Implemented two functions, "get_default_browser" and "set_foremost_process," to automatically bring the WhatsApp tab to the forefront, allowing the "Enter" key to send messages seamlessly.
@Ankit404butfound Ankit404butfound merged commit f365f06 into Ankit404butfound:master Mar 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants