How Do I: Programmically open a control panel and click the OK but

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
Thank you in advance for the help.
I know how to open a control panel, i.e. Display Properties.
control desk.cpl,@0,0
But after it is open, how can I programmically "click" the OK button?

Im running a remote control program that when it closes, the desktop is not
the original desktop. If I open the display property box and click OK, the
desktop is back to normal. So I am looking at how to do this.
Any ideas?
 
To Old To . . . said:
Hello,
Thank you in advance for the help.
I know how to open a control panel, i.e. Display Properties.
control desk.cpl,@0,0
But after it is open, how can I programmically "click" the OK button?

Im running a remote control program that when it closes, the desktop is not
the original desktop. If I open the display property box and click OK, the
desktop is back to normal. So I am looking at how to do this.
Any ideas?

Assuming your using some sort of Macro Key program
http://www.google.com/search?hl=en&q=macro+keys&btnG=Google+Search

You can put in TAB(s) (tab key) to get to OK, then enter.
 
Back
Top