How to simulate click on "ok" button? Thank you very much!
Time:10-07
As shown in figure, modify the home page in INTERNET options, and I want to use the VBS to simulate click "ok" button If is direct analog keyboard press the return key, homepage here will be a newline instead of point "ok" button My current method is the following
WshShell. SendKeys "% b" WScript. Sleep 500 WshShell. SendKeys "% {F4} " Press ALT + A "application", such as 500 milliseconds after press ALT + F4 exit So go through two steps, and the middle to the response time of the 500 milliseconds If simulated click on "ok" button, only one step, how to simulate click "ok" button, please?
Please give specific complete code, I am a novice, bother you, thank you!
CodePudding user response:
This home page address can be modified directly by the registry...
CodePudding user response:
Home Page Settings in the registry HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Internet Explorer \ Start Page of the Main key,