4 ms·
AHK solved a quirky issue my work had me develop. We have an excel sheet that gets updated periodically throughout the day by various people. When the spreadsh
by TheCapn 6y ago
AHK solved a quirky issue my work had me develop.
We have an excel sheet that gets updated periodically throughout the day by various people. When the spreadsheet is saved it also publishes an MHT file to be displayed on a webbrowser that refreshes every 5 minutes. That browser runs on a little Intel stick plugged into a wall-mounted TV to show the spreadsheet to various parts of the office / production floor.
At night the screens get turned off and through something that happens the little computer thinks the resolution changed and takes the browser session out of its fullscreen view to a tiny square in the corner.
No matter how many setting changes I made it still did it. AHK to the rescue. On a periodic timer take ownership of the browser window and compare its resolution to the desktop resolution. If it has changed send F11, pause, F11 to refresh the fullscreen command and boom, fixed.
That's the first use I had for AHK, I've expanded a lot on that since.
- TeMPOraL 6y agoOoh, I'm guessing Windows and its weird treatment of powered-off monitors. I dual-boot and leave my home PC on for weeks at a time; I just power the screens off when I stop working. My Linux system doesn't even notice; when I come back, everything is at it was. Windows however, the second it notices I powered off one screen, moves all the Windows to the other one. So the first thing I have to do when I come back is to rearrange the windows back to where they were. I don't know the justification for this behavior of Windows.
- smileypete 6y agoThese might help: https://superuser.com/questions/453446/how-can-i-stop-windows-re-positioning-after-waking-from-sleep https://superuser.com/questions/453446/how-can-i-stop-window... https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-10-multiple-display-windows-are-moved-and/2b9d5a18-45cc-4c50-b16e-fd95dbf27ff3 https://answers.microsoft.com/en-us/windows/forum/windows_10... Particularly st99's answer on the second link.
- TeMPOraL 6y agoThanks!