- Jun
- 1,092
- 48
The new version of Take Command has gotten me to read through the documentation and experiment with some things that I have not tried before. Case in point: the WINSTATE function.
I have the apps Signal and WhatsApp running, and both appear to be minimized (I see both of them in the taskbar, and both of them got there by clicking on the "Minimize" button at the top right corner of their windows. However, the values of WINSTATE are different.
WhatsApp is hidden, not minimized. This is consistent with the fact that the ACTIVATE command with the /RESTORE option does not bring its window back.
Can someone who understands the details of Windows better than I do explain this. Also, is there a way that I can "activate" a program that is hidden this way?
A further puzzle is that
I have the apps Signal and WhatsApp running, and both appear to be minimized (I see both of them in the taskbar, and both of them got there by clicking on the "Minimize" button at the top right corner of their windows. However, the values of WINSTATE are different.
->echo %@winstate[signal*]
2
->echo %@winstate[whatsapp*]
0
WhatsApp is hidden, not minimized. This is consistent with the fact that the ACTIVATE command with the /RESTORE option does not bring its window back.
Can someone who understands the details of Windows better than I do explain this. Also, is there a way that I can "activate" a program that is hidden this way?
A further puzzle is that
activate "whatsapp*" /hide makes the window go away, the WINSTATE function again reports it as hidden, but the command activate "whatsapp*] /restore brings it back. The "Minimize" button at the corner of the window is doing something funny.