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

The library does not work with mulitple monitors #343

Open
JP-2000 opened this issue Aug 28, 2024 · 2 comments
Open

The library does not work with mulitple monitors #343

JP-2000 opened this issue Aug 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JP-2000
Copy link

JP-2000 commented Aug 28, 2024

Description

The library works fine when I am using a single monitor, but when I plug in multiple monitors it does not work.
The python script opens and enters the text message in the textbox in whatsapp window just fine, but, it is not able to send the message or interact with the send button.

To Reproduce

Connect multiple monitors, in my case i am using 3 monitors
in the follwing format:
image

Python Script:
import pywhatkit as whatsapp
whatsapp.sendwhatmsg_instantly("+919137823863", "test2", 10)

Version Information

  • OS: Ubuntu 24.04 LTS x86_64
  • Browser: Mozilla Firefox
  • Python: 3.12
  • PyWhatKit: Verson 5.3 (Stable)
@JP-2000 JP-2000 added the bug Something isn't working label Aug 28, 2024
@PeterCraig-Scotland
Copy link

I have a very similar issue whilst using pywhatkit.sendwhatmsg_to_group_instantly function on multiple monitors.
A whatsapp tab will open. but depending on which screen the browser is open on the text will either appear in the whatsapp or in which ever application is open on the main screen.

Only work around I have found is to run code in a virtual machine.

@JP-2000
Copy link
Author

JP-2000 commented Nov 17, 2024

@PeterCraig-Scotland Thanks for the reply! Yeah, I agree, that's the only workaround I've found too. Running it in a VM seems to be the best option for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants