2

I'm running Windows 10, Version 10.0.19045 Build 19045 (22H2).

This VBS script below used to work until today to change my Windows background to the Next Background but suddenly it will only popup the standard "Open... Properties" dialog along with a VBScript window containing the script, but will not execute the keystrokes.

set WshShell = WScript.CreateObject("Wscript.Shell")
WshShell.SendKeys("^ ")
WshShell.SendKeys("+{F10}")
WshShell.SendKeys("n")

I checked HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings and HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Script Host\Settings entries and both are enabled (1)

I can execute a simple VBS script like MsgBox ("Hello World") so it appears vscript.exe is working.

This is what I get when I dbl click (execute) the script

0

1 Answer 1

2

The issue started when you installed PowerToys. Specifically, the PowerToys Peek utility.

The default activation shortcut for Peek is Ctrl-Space.

Your script sends a Ctrl-Space. That's why Peek opens up. You can either disable Peek or change it's activation shortcut in Settings. Here, you can see I changed it to Ctrl-Alt-Space:

enter image description here

2
  • 1
    LesFerch,, you got it-absolutely! Power Toys was running with Peek intervening.
    – mapper
    Commented Oct 9, 2023 at 3:43
  • 1
    Nice detective work @LesFerch! +1
    – user692942
    Commented Oct 9, 2023 at 7:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .