中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-02 20:30
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » How can a batch file simulate the "OK" button in the Desktop Properties panel
Printable Version  1,040 / 4
Floor1 mouzeming Posted 2006-12-24 22:34
初级用户 Posts 28 Credits 66
I changed the registry, but if I don't click OK once in "Desktop - Properties", it won't take effect..
Is there any command that can replace OK? VBS is fine too
Floor2 namejm Posted 2006-12-24 22:57
荣誉版主 Posts 1,737 Credits 5,226 From 成都
  What do you mean by the “OK” button? Please modify the title and the related description.
Floor3 mouzeming Posted 2006-12-24 23:19
初级用户 Posts 28 Credits 66
For example, if you change the desktop background, you definitely need to click "Apply" or "OK" before the current settings take effect.
So what command has the same function as the "OK" button in "Desktop - Properties"?
Floor4 namejm Posted 2006-12-24 23:26
荣誉版主 Posts 1,737 Credits 5,226 From 成都
  A batch file can't simulate keypress operations. You should use a script like AutoIt to complete the task. Again, please modify the title.
Floor5 jmz573515 Posted 2006-12-25 07:07
银牌会员 Posts 464 Credits 1,212
'I think what the OP means is refresh. If it's refresh, you can use the script below.
set ws=createobject("wscript.shell")
ws.sendkeys "{f5}+{f10}e"
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023