mercredi 8 février 2017

VB Script causes computer to crash on sleep

Vote count: 0

I was looking for a way to minimize all windows to the taskbar after the computer becomes idle, effectively showing the desktop. I tried sending win+d to the machine on idle, but found that if all windows were already minimized, they would reappear

I found the following VB script online and created a scheduled task to execute it once the computer becomes idle. The script worked like a charm but now, whenever I put the computer into sleep mode / close the lid on my laptop, the computer crashes.

Dim Shell : Set Shell = CreateObject("Shell.Application") : Shell.MinimizeAll

I am not familiar with VB scripts (worked a bit with VBA so the syntax is familiar), but after disabling the scheduled task, I found the issue to be resolved. Is there something in this script that would cause the computer to crash on sleep?

Windows 10

asked 41 secs ago

Let's block ads! (Why?)



VB Script causes computer to crash on sleep

Aucun commentaire:

Enregistrer un commentaire