How to open the Run window programmatically

落爺英雄遲暮 提交于 2019-12-02 01:25:54

问题


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 programmatically.
This window seems to be part of explorer.exe.
Does anyone have an idea on it ?


回答1:


You can use IShellDispatch::FileRun to achieve this.

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




回答2:


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



来源:https://stackoverflow.com/questions/7738205/how-to-open-the-run-window-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!