How to open the Run window programmatically

前端 未结 2 561
小蘑菇
小蘑菇 2021-01-21 06:06

Everyone knows the Run window that you can open with the shortcut Windows+R or directly in the Windows menu then Run.
I\'m wondering how to open this Run window programmatic

相关标签:
2条回答
  • 2021-01-21 06:29

    You can use IShellDispatch::FileRun to achieve this.

    See Using the Windows RunFile dialog - The documented and undocumented way for details and sample code.

    0 讨论(0)
  • 2021-01-21 06:43

    If you mean that it could open say at 8:00 am, then you can use autohotkey and simply write SendInput {Raw}{Lwin}{R} and then compile it as an .exe and put it as a cron job

    0 讨论(0)
提交回复
热议问题