VBscript to change resolution

D

Damo_Suzuki

I am using precentation director(IBM) to contol display schemes, I have
this script to create new schemes and add them to the registry


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim oShell
oShell = CreateObject("WScript.Shell")
oShell.run("regedit c:\resolution\npdirectdd.reg")
oShell.run("regedit c:\resolution\dualdisplay.reg")

I still have to open presentation director and press "apply" to apply
the relevant scheme. Does anyone know of a way I can automatically
apply the scheme through the vbscript .
Thanks in advance
 
G

Guest

Damo_Suzuki said:
I am using precentation director(IBM) to contol display schemes, I have
this script to create new schemes and add them to the registry


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim oShell
oShell = CreateObject("WScript.Shell")
oShell.run("regedit c:\resolution\npdirectdd.reg")
oShell.run("regedit c:\resolution\dualdisplay.reg")

I still have to open presentation director and press "apply" to apply
the relevant scheme. Does anyone know of a way I can automatically
apply the scheme through the vbscript .
Thanks in advance


Try posting this in the MSDN forums. It appears to be VB 2005, so try
posting in
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top