Prompt to execute shortcut


  1. Posts : 481
    Windows 10 pro 1903 1862.145
       #1

    Prompt to execute shortcut


    This time, for once, I actually want an "Are you sure . . ." window to pop up when executing a shortcut. Any suggestions?

    tcebob
      My Computer


  2. Posts : 42,964
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    You could have the shortcut point to a very simple Autohotkey script
    Autohotkey is a free scripting language, well supported, and yours is a trivial case, so using the help file and examples you should be able to achieve that.

    The script would use a
    MsgBox

    Displays the specified text in a small window containing one or more buttons (such as Yes and No).

    followed by

    IfMsgBox

    Checks which button was pushed by the user during the most recent MsgBox command.

    IfMsgBox, ButtonName

    to check the response, and then conditionally launches your program.
      My Computers


  3. Posts : 481
    Windows 10 pro 1903 1862.145
    Thread Starter
       #3

    OK, good suggestion. I normally use HotkeyP for key macros so I'll try that first. But Autohotkey is more extensive and I keep a copy at the ready.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:21.
Find Us




Windows 10 Forums