VBscript to change resolution

  • Thread starter Thread starter Damo_Suzuki
  • Start date Start date
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
 
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
 
Back
Top