D4koon / WhatsappTray

Minimize Whatsapp Desktop-Client to Tray
GNU General Public License v3.0
387 stars 32 forks source link

WhatsApp-Window not found error #84

Closed ToraxOutlaw closed 2 years ago

ToraxOutlaw commented 3 years ago

I've set up everything correctly, but each time I turn on my PC I'm greeted with the error of WhatsApp-Window not found.

I have installed the latest version, my appData config file has been changed so that the startpath is the folder containing WhatsApp.exe in my /AppData/Local/WhatsApp/

I haven't changed anything else in the config, other than close to tray, start minimized and launch on windows startup.

What else can I do to fix this error? I have attached a copy of the error log as well as my config file (converted to a txt file) appData.txt Log_2020-11-15_19#34#54.txt

malteme commented 3 years ago

According to the logfile you are not using the latest release of WhatsAppTray. Have you tried version 1.7.0 already?

ToraxOutlaw commented 3 years ago

I've just updated it to 1.7.0, and now it's a different error.

I have attached the new error log file. Log_2020-11-19_07#34#17.txt

ToraxOutlaw commented 3 years ago

OK, did a full uninstall of WhatsAppTray, deleted all leftover files and any files that are related to it. Restarted the pc, did a fresh install of WhatsAppTray, restarted the pc again and it's now the WhatsApp-Window not found error again. I have attached the new log file. Log_2020-11-22_22#47#34.txt

malteme commented 3 years ago

Is WhatsApp starting and WhatsAppTry can't find the window or isn't WhatsApp starting at all?

ToraxOutlaw commented 3 years ago

WhatsApp is starting fine, I can fully close it, load whatsapptray and then it works but it won't work on system startup.

D4koon commented 3 years ago

Does it take very long for WhatsApp to start on your machine? It looks like WhatsApp is just not started. WhatsappTray is "only" waiting for 30 seconds and if it can not find the WhatsApp window, it will close.

ToraxOutlaw commented 3 years ago

Whatspptray loads up once I've logged in, gives me the error and then WhatsApp loads.

Is there anything I can try?

benji009 commented 2 years ago

i have the exact same problem. started happening randomly a month back. now i need to install whatsapp every single time i turn on my pc :(

4rtz1z commented 2 years ago

Same happened to me since yesterday Log_2021-10-07_08#26#59.txt

D4koon commented 2 years ago

I can confirm that, i have the same problem But im also unable to start WhatsApp without WhatsappTray So i think there is some Problem with WhatsApp at the moment.

I hope they will fix it soon

D4koon commented 2 years ago

After installing it a two times with the installer from the WhatsApp-website it looks like its running on WhatsApp-version app-2.2134.10, which seems to still work (also with WhatsappTray) So for everyone who wants a quickfix, you can try that

eraser-head commented 2 years ago

Después de instalarlo unas dos veces con el instalador desde el sitio web de WhatsApp, parece que se ejecuta en su versión de la aplicación WhatsApp--2.2134.10, que parece funcionar todavía (también con WhatsappTray) Así que para todos los que quieren un quickfix, puede intentar ese

For me works, when i restart windows show me again the same message "Whatsapp-Window not found"

I can't understand that in 2021 whatsapp do not have the option to minimize to the notification area

eraser-head commented 2 years ago

Ok, I think I found a fix, solution, whatever... launch WhatsApp with a shortcut in Start folder in start menu, maybe check WhatsApp starts when login works too

DG2YCB commented 2 years ago

Since a couple of weeks I am observing the same issue ("WhatsApp-Window not found") on my two Windows 10 computers. But also WhatsApp itself cannot be started. Now, WhatsApp must be installed each time I log in my PC. Really annoying! I found no fix so far. I've set an exception to Windows Defender and deleted all WhatsApp files from AppData, but all of that had no effect. Any idea what happened and why?

DG2YCB commented 2 years ago

It seems that I just found a workaround: Put WhatsAppSetup.exe in Window's Autostart folder. Then WhatsApp is installed each time when I start my computer. And this installation ist fast enough so that WhatsAppTray then finds the WhatsApp window and puts it into the tray. It's a bit "dirty programming", but at least it works for me...

DG2YCB commented 2 years ago

I found and fixed it: Reason why both WhatAppTray and WhatsApp.exe is not working is that WhatsApp.exe does not find the correct version in \app-2.2134.10\ subfolder. (Must be a bug within WhatsApp program.) This subfolder contains another WhatsApp.exe which works as it should. Once I changes the path for WhatsApp.exe to that, WhatsApp as well as WhatsAppTray works well! See my following mod to c:/Programs x86/WhatsAppTray/appData.ini. I changed "C:\Users\USER\AppData\Local\WhatsApp\WhatsApp.exe" to "C:\Users\USER\AppData\Local\WhatsApp\app-2.2134.10\WhatsApp.exe":

[config] CLOSE_TO_TRAY=1 LAUNCH_ON_WINDOWS_STARTUP=1 START_MINIMIZED=1 SHOW_UNREAD_MESSAGES=0 WHATSAPP_STARTPATH=C:\Users\USER\AppData\Local\WhatsApp\app-2.2134.10\WhatsApp.exe WHATSAPP_ROAMING_DIRECTORY=C:\Users\USER\AppData\Roaming CLOSE_TO_TRAY_WITH_ESCAPE=0

D4koon commented 2 years ago

With new Versions of Whatsapp this seems to be fixed, reopen if there is still some problem

DG2YCB commented 2 years ago

A couple of weeks ago I had reported my findings also to the WhatsApp development team. So, good to hear that they fixed it. Thanks for your great WhatAppTray program! Regards!