Closed rvanbekkum closed 5 years ago
I was about to ask the same :)
+1
I run WhatsApp Tray on Autostart. Everytime I log in to Windows I get this WhatsApp Window hammered in my face...
This AutoHotkey script runs WhatsappTray application, waits for WhatsApp window and minimize it in to the systray.
`
ProcessId(exe_name) { Process, Exist, %exe_name% return %ErrorLevel% }
PID := ProcessId("whatsapp.exe") RUN "%ProgramFiles%\whatsapptray\whatsapptray.exe"
Sleep 8000
if (0 == PID) { WinWait ahk_exe whatsapp.exe WinActivate ahk_exe whatsapp.exe WinWaitActive ahk_exe whatsapp.exe,,2 Send !{Space} Sleep 100 Send n } `
This AutoHotkey script runs WhatsappTray application, waits for WhatsApp window and minimize it in to the systray.
`
NoTrayIcon
ProcessId(exe_name) { Process, Exist, %exe_name% return %ErrorLevel% }
PID := ProcessId("whatsapp.exe") RUN "%ProgramFiles%\whatsapptray\whatsapptray.exe"
Sleep 8000
if (0 == PID) { WinWait ahk_exe whatsapp.exe WinActivate ahk_exe whatsapp.exe WinWaitActive ahk_exe whatsapp.exe,,2 Send !{Space} Sleep 100 Send n } `
Thanks for your contribution, I don't have "AutoHotKey", I am trying to execute it in a .bat file:
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "start-process P:\Archivos\Programas\WhatsappTray.lnk -WindowStyle Minimized"
but it don't minimize it, do you have idea how to minimize it with batch code?
Thanks!
I added a setting for this, which can be configured via the config file (appData.ini) or via the settings when minimized.
Hello D4koon!
Now, I try your WhatsappTrayV1.4.0, but the Start minimized function does not work.
Tested on desktop W7, x64 - with WhatsApp x86 and WhatsApp x64.
The log file is attached in email.
https://github.com/D4koon/WhatsappTray/releases/tag/1.4.0
https://www.whatsapp.com/download/
ALFOX
---------- Původní e-mail ---------- Od: D4koon notifications@github.com Komu: D4koon/WhatsappTray WhatsappTray@noreply.github.com Datum: 1. 1. 2019 19:49:30 Předmět: Re: [D4koon/WhatsappTray] Feature Request: Minimize to tray on start-up (#13) " Closed #13(https://github.com/D4koon/WhatsappTray/issues/13).
— You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/D4koon/WhatsappTray/issues/13#event-2049553642), or mute the thread (https://github.com/notifications/unsubscribe-auth/AqSEnG_0IYlBC6hQA-_N5vyZr4wN1XX0ks5u-626gaJpZM4P3mgz) . "
[WhatsappTray] ::startWhatsapp() - Starting from path='C:\Users\PC\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\WhatsApp\WhatsApp.lnk' [WhatsappTray] ::startWhatsapp() - Filepath is: 'C:\Users\PC\AppData\Local\WhatsApp\app-0.3.1847\WhatsApp.exe' [WhatsappTray] ::startWhatsapp() - Found match. [WhatsappTray] WinMain() - Prepare for starting minimized. [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x24' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x81' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x83' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x1' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x401' [WhatsappTray] WM_ADDTRAY TrayManager::MinimizeWindowToTray(0x20031C) TrayManager::CreateTrayIcon(63) [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x46' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x47' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x1C' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x86' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x6' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x281' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x282' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x7' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x211' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x20' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x116' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x117' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x404' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x11F' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x121' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x215' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x125' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x11F' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x212' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x111' TrayManager::CloseWindowFromTray() TrayManager::RemoveFromTray(63) [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x86' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x6' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x1C' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x8' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x281' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x282' [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x2' [WhatsappTray] WM_DESTROY [WhatsappTray] QuitMessage posted. [WhatsappTray] WhatsAppTrayWndProc() - Message Received msg='0x82'
Hello Alfoxxx,
thx for your feedback. I uploaded a version 1.4.1 which may fix the problem.
Edit: After writing this i now noticed that the delay is sometimes to short atleast on my pc and WhatsApp decides to pop up again. I think i will increase that delay with the next version...
With 1.4.1 it goes to the tray for like 1 second and then it get back to the taskbar.
I made the delay longer please try the new version: https://github.com/D4koon/WhatsappTray/releases/tag/v1.4.2
Working perfectly now :)
Hi, I'm using your application since today and it works great! Only thing I was missing is an option to make WhatsApp minimize to the tray directly on start-up. That is, I don't want to see WhatsApp after logging in each time, but only when I actually want to see it (for example, after receiving a message).