so I've been trying to get VLC player to skip to the next file at a specific time (10am). I've got the following script that worked fine for a few days, and then stopped completely.
Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.AppActivate "VLC Media Player" WScript.sleep(200) WshShell.SendKeys "n"
The VBS file itself runs fine, however task scheduler doesn't seem to skip the file when it runs (the vlc window will sometimes flash).
I've tried ignoring login, changing the user to system and setting to run under any network connection, and having a .bat file run the .vbs script. Nothing has worked so far and I feel like I'm going nuts, any help would be hugely appreciated. I have close-to zero knowledge of scripting so I would appreciate things explained if possible.