D4koon / WhatsappTray

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

Whatsapp closing even with "Close to tray" enabled. #46

Closed tauuruz closed 3 years ago

tauuruz commented 5 years ago

Hello!

When I click on the X to minimize to tray sometimes Whatsapp closes but WhatsappTray is still running. If I try to launch again WhatsappTray it won't launch and I need to kill process.

I'm running windows 10 1903. WhatsappTray Version 1.4.3

C:

RyanEwen commented 5 years ago

Same issue. Seems to work after closing WhatsApp the first time but if you then click the tray icon to bring up WhatsApp again and then close it again, it actually closes, and the tray icon doesn't reappear. The process has to be killed.

eternalcakes commented 4 years ago

Hello, same issue. However, only intermittently and inconsistently (usually after a period of idling however). I can also open WhatsApp without problem afterwards (no need to kill process).

Windows 10 latest build.

endrigo commented 4 years ago

Hello. I've same issue.
I'm running windows 10 1903. WhatsappTray Version 1.4.3

goblatore commented 3 years ago

Same issue. Windows 10 Pro 2004 build 19041.508. WhatsappTray Version 1.6.0

D4koon commented 3 years ago

Same issue. Windows 10 Pro 2004 build 19041.508. WhatsappTray Version 1.6.0

Can you send the logs when this happens They can be found under: /logs Thank you

goblatore commented 3 years ago

Just happened, here you are last logs

   Giacomo

Il 28/09/2020 09:25, D4koon ha scritto:

Same issue. Windows 10 Pro 2004 build 19041.508.
WhatsappTray Version 1.6.0

Can you send the logs when this happens Thank you

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/D4koon/WhatsappTray/issues/46#issuecomment-699830417, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZ4D2YH65ACKIB7VD4VTNDSIA3ALANCNFSM4HSJZSBQ.

Cordiali saluti,

   Giacomo Oblatore


Dott. Ing. Giacomo Giuseppe Oblatore E-mail: giacomo.oblatore@gmail.com Cell.: 340 3337800

08:53:18.339 - WhatsappTray::WinMain(): Starting WhatsappTray 1.6.0.0 in Release CompileConfiguration. 08:53:18.340 - WhatsAppApi::Init() - Using leveldb-directory:C:\Users\giaco\AppData\Roaming\WhatsApp\IndexedDB\file__0.indexeddb.leveldb\ 08:53:18.348 - WhatsappTray::WinMain() - Prepare for starting minimized. 08:53:18.356 - Hook> Attached hook.dll to ProcessID: 0x00004430 08:53:18.357 - Hook> Filepath: 'C:\Program Files (x86)\WhatsappTray\WhatsappTray.exe' WhatsappTrayLoadLibraryTest: 'TRUE' 08:53:18.357 - Hook> Detected that this Attache was triggered by LoadLibrary() => Cancel further processing 08:53:18.358 - WhatsappTray::StartWhatsapp() - Starting WhatsApp from canonical-path:'C:\Users\giaco\AppData\Local\WhatsApp\WhatsApp.exe' 08:53:18.823 - WhatsappTrayStartWhatsapp() - WhatsApp-Window not found. Wait 500ms and retry. 08:53:19.331 - WhatsappTray::FindWhatsapp() - Filepath is: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' 08:53:19.331 - WhatsappTray::FindWhatsapp() - Found match. 08:53:19.331 - WhatsappTrayStartWhatsapp() - WhatsApp-Window found. 08:53:19.331 - WhatsappTray::SetHook() 08:53:19.332 - TrayManager::ctor() - Creating TrayManger. 08:53:19.332 - TrayManager::CreateTrayIcon(63) 08:53:19.456 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:53:19.483 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:53:19.666 - Hook> Attached hook.dll to ProcessID: 0x0000688C 08:53:19.667 - Hook> Filepath: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' WhatsappTrayLoadLibraryTest: '' 08:53:19.668 - Hook> Attached in window 'WhatsApp' _whatsAppWindowHandle: 0x01CD0ADE 08:53:22.625 - WhatsAppApi::IndexedDbChanged() - Found match for fullInit. 08:53:22.625 - WhatsappTray::WinMain() - NotifyOnFullInit 08:53:24.636 - WhatsappTray::WndProc() - WM_ADDTRAY 08:53:24.636 - TrayManager::MinimizeWindowToTray(0x1CD0ADE) 08:53:37.520 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:53:37.522 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:53:37.622 - Hook> WhatsappTrayHook::::RedirectedWndProc: SC_MINIMIZE received 08:53:37.622 - WhatsappTray::WndProc() - WM_ADDTRAY 08:53:37.622 - TrayManager::MinimizeWindowToTray(0x1CD0ADE) 08:53:37.890 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:53:39.882 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:53:39.884 - WhatsappTray::WndProc() - WM_ADDTRAY 08:53:39.884 - TrayManager::MinimizeWindowToTray(0x1CD0ADE) 08:54:12.642 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:54:12.644 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:54:12.748 - Hook> WhatsappTrayHook::::RedirectedWndProc: WM_NCDESTROY received 08:54:12.750 - WhatsappTray::WndProc() - WM_WHAHTSAPP_CLOSING 08:54:12.750 - Hook> WhatsappTrayHook::WM_WHAHTSAPP_CLOSING successful sent. 08:54:12.752 - WhatsappTray::WndProc() - WM_DESTROY 08:54:12.753 - TrayManager::RemoveFromTray(63) 08:54:12.812 - Hook> Detach hook.dll from ProcessID: 0x00004430 08:54:12.813 - WhatsappTray::WndProc() - QuitMessage posted. 08:54:12.816 - WhatsappTray::WndProc() - WM_WHATSAPP_TO_WHATSAPPTRAY_RECEIVED_WM_CLOSE received

08:52:03.259 - WhatsappTray::WinMain(): Starting WhatsappTray 1.6.0.0 in Release CompileConfiguration. 08:52:03.260 - WhatsAppApi::Init() - Using leveldb-directory:C:\Users\giaco\AppData\Roaming\WhatsApp\IndexedDB\file__0.indexeddb.leveldb\ 08:52:03.267 - WhatsappTray::WinMain() - Prepare for starting minimized. 08:52:03.276 - Hook> Attached hook.dll to ProcessID: 0x00006708 08:52:03.276 - Hook> Filepath: 'C:\Program Files (x86)\WhatsappTray\WhatsappTray.exe' WhatsappTrayLoadLibraryTest: 'TRUE' 08:52:03.276 - Hook> Detected that this Attache was triggered by LoadLibrary() => Cancel further processing 08:52:03.277 - WhatsappTray::StartWhatsapp() - Starting WhatsApp from canonical-path:'C:\Users\giaco\AppData\Local\WhatsApp\WhatsApp.exe' 08:52:03.730 - WhatsappTray::FindWhatsapp() - Filepath is: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' 08:52:03.730 - WhatsappTray::FindWhatsapp() - Found match. 08:52:03.730 - WhatsappTrayStartWhatsapp() - WhatsApp-Window found. 08:52:03.730 - WhatsappTray::SetHook() 08:52:03.730 - TrayManager::ctor() - Creating TrayManger. 08:52:03.730 - TrayManager::CreateTrayIcon(63) 08:52:04.171 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:52:04.186 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:52:10.100 - WhatsAppApi::IndexedDbChanged() - Found match for fullInit. 08:52:10.100 - WhatsappTray::WinMain() - NotifyOnFullInit 08:52:12.115 - WhatsappTray::WndProc() - WM_ADDTRAY 08:52:12.115 - TrayManager::MinimizeWindowToTray(0x1E2054) 08:52:51.232 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:52:51.413 - Hook> Attached hook.dll to ProcessID: 0x00005650 08:52:51.413 - Hook> Filepath: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' WhatsappTrayLoadLibraryTest: '' 08:52:51.414 - Hook> Attached in window 'WhatsApp' _whatsAppWindowHandle: 0x001E2054 08:52:52.407 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:52:52.411 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:52:52.524 - Hook> WhatsappTrayHook::::RedirectedWndProc: WM_NCDESTROY received 08:52:52.526 - WhatsappTray::WndProc() - WM_WHAHTSAPP_CLOSING 08:52:52.526 - Hook> WhatsappTrayHook::WM_WHAHTSAPP_CLOSING successful sent. 08:52:52.526 - WhatsappTray::WndProc() - WM_DESTROY 08:52:52.527 - TrayManager::RemoveFromTray(63) 08:52:52.552 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:52:52.575 - Hook> Detach hook.dll from ProcessID: 0x00006708 08:52:52.577 - WhatsappTray::WndProc() - QuitMessage posted. 08:52:52.578 - WhatsappTray::WndProc() - WM_WHATSAPP_TO_WHATSAPPTRAY_RECEIVED_WM_CLOSE received

08:29:20.584 - WhatsappTray::WinMain(): Starting WhatsappTray 1.6.0.0 in Release CompileConfiguration. 08:29:20.586 - WhatsAppApi::Init() - Using leveldb-directory:C:\Users\giaco\AppData\Roaming\WhatsApp\IndexedDB\file__0.indexeddb.leveldb\ 08:29:20.593 - WhatsappTray::WinMain() - Prepare for starting minimized. 08:29:20.601 - Hook> Attached hook.dll to ProcessID: 0x000014C8 08:29:20.601 - Hook> Filepath: 'C:\Program Files (x86)\WhatsappTray\WhatsappTray.exe' WhatsappTrayLoadLibraryTest: 'TRUE' 08:29:20.602 - Hook> Detected that this Attache was triggered by LoadLibrary() => Cancel further processing 08:29:20.602 - WhatsappTray::StartWhatsapp() - Starting WhatsApp from canonical-path:'C:\Users\giaco\AppData\Local\WhatsApp\WhatsApp.exe' 08:29:21.064 - WhatsappTray::FindWhatsapp() - Filepath is: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' 08:29:21.064 - WhatsappTray::FindWhatsapp() - Found match. 08:29:21.064 - WhatsappTrayStartWhatsapp() - WhatsApp-Window found. 08:29:21.064 - WhatsappTray::SetHook() 08:29:21.064 - TrayManager::ctor() - Creating TrayManger. 08:29:21.064 - TrayManager::CreateTrayIcon(63) 08:29:21.664 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:29:21.755 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:29:22.121 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:29:22.121 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:29:22.132 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:29:22.231 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:29:22.231 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:29:22.232 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:29:23.831 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:29:23.831 - WhatsAppApi::IndexedDbChanged() - file.is_open() == false 08:29:24.840 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:29:24.849 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:29:55.028 - Hook> Attached hook.dll to ProcessID: 0x00007C48 08:29:55.029 - Hook> Filepath: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' WhatsappTrayLoadLibraryTest: '' 08:29:55.029 - Hook> Attached in window 'WhatsApp' _whatsAppWindowHandle: 0x04E00DC2 08:29:55.746 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:29:55.749 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:29:55.848 - Hook> WhatsappTrayHook::::RedirectedWndProc: SC_MINIMIZE received 08:29:55.848 - WhatsappTray::WndProc() - WM_ADDTRAY 08:29:55.849 - TrayManager::MinimizeWindowToTray(0x4E00DC2) 08:30:05.873 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:51:24.308 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:51:24.309 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:51:24.410 - Hook> WhatsappTrayHook::::RedirectedWndProc: SC_MINIMIZE received 08:51:24.410 - WhatsappTray::WndProc() - WM_ADDTRAY 08:51:24.410 - TrayManager::MinimizeWindowToTray(0x4E00DC2) 08:51:58.025 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:51:58.026 - WhatsappTray::WndProc() - WM_ADDTRAY 08:51:58.026 - TrayManager::MinimizeWindowToTray(0x4E00DC2) 08:52:00.364 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:52:00.365 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:52:00.481 - Hook> WhatsappTrayHook::::RedirectedWndProc: WM_NCDESTROY received 08:52:00.482 - WhatsappTray::WndProc() - WM_WHAHTSAPP_CLOSING 08:52:00.482 - Hook> WhatsappTrayHook::WM_WHAHTSAPP_CLOSING successful sent. 08:52:00.483 - WhatsappTray::WndProc() - WM_DESTROY 08:52:00.483 - TrayManager::RemoveFromTray(63) 08:52:00.518 - Hook> Detach hook.dll from ProcessID: 0x000014C8 08:52:00.520 - WhatsappTray::WndProc() - QuitMessage posted. 08:52:00.520 - WhatsappTray::WndProc() - WM_WHATSAPP_TO_WHATSAPPTRAY_RECEIVED_WM_CLOSE received

08:54:32.400 - WhatsappTray::WinMain(): Starting WhatsappTray 1.6.0.0 in Release CompileConfiguration. 08:54:32.401 - WhatsAppApi::Init() - Using leveldb-directory:C:\Users\giaco\AppData\Roaming\WhatsApp\IndexedDB\file__0.indexeddb.leveldb\ 08:54:32.410 - WhatsappTray::WinMain() - Prepare for starting minimized. 08:54:32.419 - Hook> Attached hook.dll to ProcessID: 0x00003FB0 08:54:32.419 - Hook> Filepath: 'C:\Program Files (x86)\WhatsappTray\WhatsappTray.exe' WhatsappTrayLoadLibraryTest: 'TRUE' 08:54:32.419 - Hook> Detected that this Attache was triggered by LoadLibrary() => Cancel further processing 08:54:32.420 - WhatsappTray::StartWhatsapp() - Starting WhatsApp from canonical-path:'C:\Users\giaco\AppData\Local\WhatsApp\WhatsApp.exe' 08:54:32.861 - WhatsappTray::FindWhatsapp() - Filepath is: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' 08:54:32.861 - WhatsappTray::FindWhatsapp() - Found match. 08:54:32.861 - WhatsappTrayStartWhatsapp() - WhatsApp-Window found. 08:54:32.861 - WhatsappTray::SetHook() 08:54:32.861 - TrayManager::ctor() - Creating TrayManger. 08:54:32.861 - TrayManager::CreateTrayIcon(63) 08:54:33.335 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 08:54:33.363 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:54:35.179 - Hook> Attached hook.dll to ProcessID: 0x0000762C 08:54:35.179 - Hook> Filepath: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' WhatsappTrayLoadLibraryTest: '' 08:54:35.180 - Hook> Attached in window 'WhatsApp' _whatsAppWindowHandle: 0x005B03D0 08:54:36.672 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:54:36.673 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:54:36.768 - Hook> WhatsappTrayHook::::RedirectedWndProc: SC_MINIMIZE received 08:54:36.768 - WhatsappTray::WndProc() - WM_ADDTRAY 08:54:36.768 - TrayManager::MinimizeWindowToTray(0x5B03D0) 08:54:36.866 - WhatsAppApi::IndexedDbChanged() - Found match for fullInit. 08:54:36.866 - WhatsappTray::WinMain() - NotifyOnFullInit 08:54:38.372 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:54:38.374 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:54:38.473 - Hook> WhatsappTrayHook::::RedirectedWndProc: SC_MINIMIZE received 08:54:38.474 - WhatsappTray::WndProc() - WM_ADDTRAY 08:54:38.474 - TrayManager::MinimizeWindowToTray(0x5B03D0) 08:54:38.878 - WhatsappTray::WndProc() - WM_ADDTRAY 08:54:38.878 - TrayManager::MinimizeWindowToTray(0x5B03D0) 08:54:41.195 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:54:41.198 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 08:54:41.274 - Hook> WhatsappTrayHook::::RedirectedWndProc: SC_MINIMIZE received 08:54:41.274 - WhatsappTray::WndProc() - WM_ADDTRAY 08:54:41.274 - TrayManager::MinimizeWindowToTray(0x5B03D0) 08:54:41.544 - WhatsAppApi::IndexedDbChanged() - file.fail() 08:54:41.989 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 08:58:31.267 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 09:36:13.497 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 09:36:13.499 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 09:36:13.622 - Hook> WhatsappTrayHook::::RedirectedWndProc: SC_MINIMIZE received 09:36:13.623 - WhatsappTray::WndProc() - WM_ADDTRAY 09:36:13.623 - TrayManager::MinimizeWindowToTray(0x5B03D0) 09:36:13.877 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 09:36:13.884 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 09:36:13.887 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 09:36:13.889 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 09:37:04.809 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 09:37:05.971 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 09:37:22.215 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:16:02.967 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 10:16:02.968 - WhatsappTray::WndProc() - WM_ADDTRAY 10:16:02.968 - TrayManager::MinimizeWindowToTray(0x5B03D0) 10:16:06.893 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 10:16:06.893 - WhatsappTray::WndProc() - WM_ADDTRAY 10:16:06.893 - TrayManager::MinimizeWindowToTray(0x5B03D0) 10:16:10.034 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 10:16:10.035 - Hook> WhatsappTrayHook::::MouseProc: WM_LBUTTONDOWN received 10:16:10.164 - Hook> WhatsappTrayHook::::RedirectedWndProc: WM_NCDESTROY received 10:16:10.165 - Hook> WhatsappTrayHook::WM_WHAHTSAPP_CLOSING successful sent. 10:16:10.165 - WhatsappTray::WndProc() - WM_WHAHTSAPP_CLOSING 10:16:10.166 - WhatsappTray::WndProc() - WM_DESTROY 10:16:10.166 - TrayManager::RemoveFromTray(63) 10:16:10.206 - Hook> Detach hook.dll from ProcessID: 0x00003FB0 10:16:10.208 - WhatsappTray::WndProc() - QuitMessage posted. 10:16:10.211 - WhatsappTray::WndProc() - WM_WHATSAPP_TO_WHATSAPPTRAY_RECEIVED_WM_CLOSE received

D4koon commented 3 years ago

Very strange. I can not reprduce it. Do you do anything special or just a normal click? Could you please try the following debugversion, which has more debug output for the MouseProc. Debug.zip If it happens post log again.

D4koon commented 3 years ago

Did you do any modifications that affect the size of the close-button? My understanding is that the button of Whatsapp is not a standard-button but a electron-spezial, which makes it harder to detect. For this reason i hardcoded the size of the x-button Mine looks like that: image

Zpslon commented 3 years ago

Same behavior with debag. https://yadi.sk/d/DCWnBbg4L6qKmQ

D4koon commented 3 years ago

Ok i think i understand the problem now. Your Titlebar must be bigger then mine. This is probably due to scaling-option in windows-settings: image I have it on 100% but my guess it yours is diffrent.

Can you confirm that?

I try to find a way to adjust to this setting.

Zpslon commented 3 years ago

Saw the comment above. I have two monitors, one 24 "1920 * 1080, the second one I bought recently in July, 27" 4K, this is now the main monitor. I checked that if you expand Whatsup tray on a FullHD monitor, then there is no problem, it does not close when minimized. The problem manifests itself on a 4K monitor. Scaling is set to 175%

goblatore commented 3 years ago

ah! I'm on a 4k monitor, 200% scaling :-D

Il 29/09/2020 19:20, Zpslon ha scritto:

Saw the comment above. I have two monitors, one 24 "1920 * 1080, the second one I bought recently in July, 27" 4K, this is now the main monitor. I checked that if you expand Whatsup tray on a FullHD monitor, then there is no problem, it does not close when minimized. The problem manifests itself on a 4K monitor. Scaling is set to 175%

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/D4koon/WhatsappTray/issues/46#issuecomment-700859800, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZ4D23NAIXWUDUV4EXY6C3SIIJMVANCNFSM4HSJZSBQ.

Cordiali saluti,

   Giacomo Oblatore


Dott. Ing. Giacomo Giuseppe Oblatore E-mail: giacomo.oblatore@gmail.com Cell.: 340 3337800

goblatore commented 3 years ago

Just happened with debug version, here is the logfile

Il 28/09/2020 18:57, D4koon ha scritto:

Very strange. I can not reprduce it. Do you do anything special or just a normal click? Could you please try the following debugversion, which has more debug output for the MouseProc. Debug.zip https://github.com/D4koon/WhatsappTray/files/5293837/Debug.zip If it happens post log again.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/D4koon/WhatsappTray/issues/46#issuecomment-700158713, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZ4D26ZSZBZEMFOPEL5LUTSIC6BHANCNFSM4HSJZSBQ.

Cordiali saluti,

   Giacomo Oblatore


Dott. Ing. Giacomo Giuseppe Oblatore E-mail: giacomo.oblatore@gmail.com Cell.: 340 3337800

10:25:03.079 - WhatsappTray::WinMain(): Starting WhatsappTray 1.6.0.1 in Debug CompileConfiguration. 10:25:03.080 - WhatsAppApi::Init() - Using leveldb-directory:C:\Users\giaco\AppData\Roaming\WhatsApp\IndexedDB\file__0.indexeddb.leveldb\ 10:25:03.091 - WhatsappTray::WinMain() - Prepare for starting minimized. 10:25:03.099 - Hook> Attached hook.dll to ProcessID: 0x00007530 10:25:03.100 - Hook> Filepath: 'C:\Program Files (x86)\WhatsappTray\WhatsappTray.exe' WhatsappTrayLoadLibraryTest: 'TRUE' 10:25:03.100 - Hook> Detected that this Attache was triggered by LoadLibrary() => Cancel further processing 10:25:03.101 - WhatsappTray::StartWhatsapp() - Starting WhatsApp from canonical-path:'C:\Users\giaco\AppData\Local\WhatsApp\WhatsApp.exe' 10:25:03.530 - WhatsappTrayStartWhatsapp() - WhatsApp-Window not found. Wait 500ms and retry. 10:25:04.038 - WhatsappTray::FindWhatsapp() - Filepath is: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' 10:25:04.039 - WhatsappTray::FindWhatsapp() - Found match. 10:25:04.039 - WhatsappTrayStartWhatsapp() - WhatsApp-Window found. 10:25:04.039 - WhatsappTray::SetHook() 10:25:04.039 - TrayManager::ctor() - Creating TrayManger. 10:25:04.039 - TrayManager::CreateTrayIcon(63) 10:25:04.157 - WhatsAppApi::IndexedDbChanged() - The logfile has changed 10:25:04.719 - Hook> Attached hook.dll to ProcessID: 0x00006ACC 10:25:04.720 - Hook> Filepath: 'C:\Users\giaco\AppData\Local\WhatsApp\app-2.2039.9\WhatsApp.exe' WhatsappTrayLoadLibraryTest: '' 10:25:04.722 - Hook> Attached in window 'WhatsApp' _whatsAppWindowHandle: 0x00990320 10:25:04.915 - WhatsAppApi::IndexedDbChanged() - file.fail() 10:25:07.674 - WhatsAppApi::IndexedDbChanged() - Found match for fullInit. 10:25:07.674 - WhatsappTray::WinMain() - NotifyOnFullInit 10:25:08.112 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000003601132 x='3045' y='220' 10:25:08.113 - Hook> org-rect: left='1038' rect: right='3270' rect: top='208' rect: bottom='1784' 10:25:08.114 - Hook> mod-rect: left='3224' rect: right='3270' rect: top='208' rect: bottom='243' 10:25:08.114 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000003601132 x='3045' y='220' 10:25:08.115 - Hook> org-rect: left='1038' rect: right='3270' rect: top='208' rect: bottom='1784' 10:25:08.115 - Hook> mod-rect: left='3224' rect: right='3270' rect: top='208' rect: bottom='243' 10:25:08.239 - Hook> WhatsappTrayHook::RedirectedWndProc: SC_MINIMIZE received 10:25:08.239 - WhatsappTray::WndProc() - WM_ADDTRAY 10:25:08.240 - TrayManager::MinimizeWindowToTray(0x990320) 10:25:09.678 - WhatsappTray::WndProc() - WM_ADDTRAY 10:25:09.678 - TrayManager::MinimizeWindowToTray(0x990320) 10:25:14.833 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='3235' y='237' 10:25:14.835 - Hook> org-rect: left='1038' rect: right='3270' rect: top='208' rect: bottom='1784' 10:25:14.836 - Hook> mod-rect: left='3224' rect: right='3270' rect: top='208' rect: bottom='243' 10:25:14.837 - Hook> WhatsappTrayHook::MouseProc: Mouse on close-button. 10:25:14.843 - WhatsappTray::WndProc() - WM_ADDTRAY 10:25:14.843 - TrayManager::MinimizeWindowToTray(0x990320) 10:25:15.607 - WhatsAppApi::IndexedDbChanged() - file.fail() 10:25:19.899 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:25:20.286 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='3333' y='264' 10:25:20.287 - Hook> org-rect: left='1146' rect: right='3378' rect: top='250' rect: bottom='1826' 10:25:20.288 - Hook> mod-rect: left='3332' rect: right='3378' rect: top='250' rect: bottom='285' 10:25:20.288 - Hook> WhatsappTrayHook::MouseProc: Mouse on close-button. 10:25:20.288 - WhatsappTray::WndProc() - WM_ADDTRAY 10:25:20.288 - TrayManager::MinimizeWindowToTray(0x990320) 10:25:23.457 - Hook> WhatsappTrayHook::RedirectedWndProc: WM_CLOSE received 10:25:23.457 - WhatsappTray::WndProc() - WM_WHATSAPP_TO_WHATSAPPTRAY_RECEIVED_WM_CLOSE received 10:25:23.457 - WhatsappTray::WndProc() - WM_ADDTRAY 10:25:23.458 - Hook> WhatsappTrayHook::RedirectedWndProc: WM_CLOSE blocked. 10:25:23.458 - TrayManager::MinimizeWindowToTray(0x990320) 10:25:25.641 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='2670' y='269' 10:25:25.642 - Hook> org-rect: left='479' rect: right='2711' rect: top='244' rect: bottom='1820' 10:25:25.643 - Hook> mod-rect: left='2665' rect: right='2711' rect: top='244' rect: bottom='279' 10:25:25.644 - Hook> WhatsappTrayHook::MouseProc: Mouse on close-button. 10:25:25.645 - WhatsappTray::WndProc() - WM_ADDTRAY 10:25:25.645 - TrayManager::MinimizeWindowToTray(0x990320) 10:25:30.185 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='3569' y='251' 10:25:30.187 - Hook> org-rect: left='1370' rect: right='3602' rect: top='221' rect: bottom='1797' 10:25:30.188 - Hook> mod-rect: left='3556' rect: right='3602' rect: top='221' rect: bottom='256' 10:25:30.190 - Hook> WhatsappTrayHook::MouseProc: Mouse on close-button. 10:25:30.191 - WhatsappTray::WndProc() - WM_ADDTRAY 10:25:30.191 - TrayManager::MinimizeWindowToTray(0x990320) 10:25:33.967 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='868' y='953' 10:25:33.968 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:33.970 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:33.971 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='868' y='953' 10:25:33.973 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:33.974 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:34.482 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='909' y='774' 10:25:34.483 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:34.484 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:34.485 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='909' y='774' 10:25:34.485 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:34.485 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:35.753 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1479' y='1518' 10:25:35.754 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:35.754 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:35.755 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1479' y='1518' 10:25:35.755 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:35.756 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:36.581 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:25:41.152 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:25:41.163 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:25:41.170 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:25:41.174 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:25:47.071 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1374' y='1588' 10:25:47.072 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:47.073 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:47.073 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1374' y='1588' 10:25:47.074 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:47.074 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:49.175 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1338' y='1581' 10:25:49.176 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:49.176 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:49.177 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1338' y='1581' 10:25:49.178 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:49.178 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:25:59.224 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='2133' y='1091' 10:25:59.225 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:25:59.226 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:01.707 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1226' y='1803' 10:26:01.708 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:01.709 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:01.711 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1226' y='1803' 10:26:01.712 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:01.712 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:06.176 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1227' y='1365' 10:26:06.176 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:06.177 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:06.178 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='1227' y='1365' 10:26:06.178 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:06.178 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:07.179 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:26:07.185 - WhatsappTray::WndProc() - WM_WHATSAPP_API_NEW_MESSAGE 10:26:10.290 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='843' y='604' 10:26:10.291 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:10.291 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:10.292 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='843' y='604' 10:26:10.292 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:10.293 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:11.382 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='2380' y='301' 10:26:11.383 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:11.384 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:11.384 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='2380' y='301' 10:26:11.384 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:11.385 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:11.498 - Hook> WhatsappTrayHook::RedirectedWndProc: SC_MINIMIZE received 10:26:11.499 - WhatsappTray::WndProc() - WM_ADDTRAY 10:26:11.500 - TrayManager::MinimizeWindowToTray(0x990320) 10:26:17.401 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='2566' y='319' 10:26:17.401 - Hook> org-rect: left='377' rect: right='2609' rect: top='290' rect: bottom='1866' 10:26:17.402 - Hook> mod-rect: left='2563' rect: right='2609' rect: top='290' rect: bottom='325' 10:26:17.402 - Hook> WhatsappTrayHook::MouseProc: Mouse on close-button. 10:26:17.402 - WhatsappTray::WndProc() - WM_ADDTRAY 10:26:17.403 - TrayManager::MinimizeWindowToTray(0x990320) 10:26:21.980 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='3497' y='401' 10:26:21.982 - Hook> org-rect: left='1313' rect: right='3545' rect: top='373' rect: bottom='1949' 10:26:21.983 - Hook> mod-rect: left='3499' rect: right='3545' rect: top='373' rect: bottom='408' 10:26:21.985 - Hook> WhatsappTrayHook::MouseProc: WM_LBUTTONDOWN received. hwnd: 0x0000000000990320 x='3497' y='401' 10:26:21.986 - Hook> org-rect: left='1313' rect: right='3545' rect: top='373' rect: bottom='1949' 10:26:21.987 - Hook> mod-rect: left='3499' rect: right='3545' rect: top='373' rect: bottom='408' 10:26:22.217 - Hook> WhatsappTrayHook::RedirectedWndProc: WM_NCDESTROY received 10:26:22.218 - WhatsappTray::WndProc() - WM_WHAHTSAPP_CLOSING 10:26:22.218 - Hook> WhatsappTrayHook::WM_WHAHTSAPP_CLOSING successful sent. 10:26:22.218 - WhatsappTray::WndProc() - WM_DESTROY 10:26:22.219 - TrayManager::RemoveFromTray(63) 10:26:22.253 - Hook> Detach hook.dll from ProcessID: 0x00007530 10:26:22.255 - WhatsappTray::WndProc() - QuitMessage posted. 10:26:22.259 - WhatsappTray::WndProc() - WM_WHATSAPP_TO_WHATSAPPTRAY_RECEIVED_WM_CLOSE received

goblatore commented 3 years ago

I did nothing special, I have 4k monitor with scaling set to 200%

Il 28/09/2020 19:14, D4koon ha scritto:

Did you do any modifications that affect the size of the close-button? My understanding is that the button of Whatsapp is not a standard-button but a electron-spezial, which makes it harder to detect. For this reason i hardcoded the size of the x-button Mine looks like that: image https://user-images.githubusercontent.com/13141819/94464505-d68e5c00-01be-11eb-986e-b4183ecda25e.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/D4koon/WhatsappTray/issues/46#issuecomment-700168182, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZ4D2YEWOZIC4W6TCSUVDTSIDAA7ANCNFSM4HSJZSBQ.

Cordiali saluti,

   Giacomo Oblatore


Dott. Ing. Giacomo Giuseppe Oblatore E-mail: giacomo.oblatore@gmail.com Cell.: 340 3337800

goblatore commented 3 years ago

Yes, like I said in previous posts, this is the problem

Il 29/09/2020 15:21, D4koon ha scritto:

Ok i think i understand the problem now. Your Titlebar must be bigger then mine. This is probably due to scaling-option in windows-settings: image https://user-images.githubusercontent.com/13141819/94563587-34767e80-0267-11eb-9352-d5627c59f0e8.png I have it on 100% but my guess it yours is diffrent.

Can you confirm that?

I try to find a way to adjust to this setting.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/D4koon/WhatsappTray/issues/46#issuecomment-700698007, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZ4D26MNFSJE2H2PZQ3IODSIHNMBANCNFSM4HSJZSBQ.

Cordiali saluti,

   Giacomo Oblatore


Dott. Ing. Giacomo Giuseppe Oblatore E-mail: giacomo.oblatore@gmail.com Cell.: 340 3337800

D4koon commented 3 years ago

Please try this version whicht should fix the problem Feedback would be nice. Thank you. WhatsappTray v1.6.0.2.zip

Zpslon commented 3 years ago

Works better, but crashes nonetheless. It is necessary to click not in the center, but a little on the side, to make it clearer, I recorded the video, I also attach the logs. logs https://yadi.sk/d/vTvPDrpelvbcNw video https://yadi.sk/i/6QqGaw2_fTx1iA

D4koon commented 3 years ago

Ok i could reproduce that. The closebutton seems to be a little bit bigger when maximized :man_facepalming: Im not sure jet how i will fix that, maybe i will make the area always bigger or handle this special case. Thanks anyway for the feedback

D4koon commented 3 years ago

So next and hopefully last try 😃 As always looking for feedback WhatsappTray v1.6.0.3.zip

Zpslon commented 3 years ago

Checked it out. Collapsed and expanded Whatsupp about 100 times. I tried to click on different areas of the "Close" button Everything went fine. I attach a log just in case. https://yadi.sk/d/GnHqmnqIqCg06Q

goblatore commented 3 years ago

So next and hopefully last try 😃 As always looking for feedback WhatsappTray v1.6.0.3.zip

Hi, this is absolutely not working, sorry :-( (just to remember, I have 4k monitor wiht 200% scaling set) log attached Log_2020-10-04_19#50#29.txt

D4koon commented 3 years ago

So next and hopefully last try 😃 As always looking for feedback WhatsappTray v1.6.0.3.zip

Hi, this is absolutely not working, sorry :-( (just to remember, I have 4k monitor wiht 200% scaling set) log attached Log_2020-10-04_19#50#29.txt

Are you sure that that are the correct logs? It looks like as if you are using alt + f4 a buch of times But i do not see any mouseclicks

goblatore commented 3 years ago

Hey man, this is working!!! definitely ok!!!

I was using alt+f4 just to be sure it was a mouseclick problem...

Bye, thanks for all

   Giacomo

Il 04/10/2020 21:19, D4koon ha scritto:

    So next and hopefully last try 😃
    As always looking for feedback
    WhatsappTray v1.6.0.3.zip
    <https://github.com/D4koon/WhatsappTray/files/5321741/WhatsappTray.v1.6.0.3.zip>

Hi, this is absolutely not working, sorry :-( (just to remember, I
have 4k monitor wiht 200% scaling set)
log attached
Log_2020-10-04_19#50#29.txt
<https://github.com/D4koon/WhatsappTray/files/5323920/Log_2020-10-04_19.50.29.txt>

Are you sure that that are the correct logs? It looks like as if you are using alt + f4 a buch of times But i do not see any mouseclicks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/D4koon/WhatsappTray/issues/46#issuecomment-703302719, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZ4D2Z6VDOWRFIOKWK3LCLSJDDEJANCNFSM4HSJZSBQ.

Cordiali saluti,

   Giacomo Oblatore


Dott. Ing. Giacomo Giuseppe Oblatore E-mail: giacomo.oblatore@gmail.com Cell.: 340 3337800