TheGeneral Posted August 13, 2009 Share Posted August 13, 2009 I was looking the UDF Screen Resolution Change source, and in MSDN documentation there is this option: CDS_SET_PRIMARY This device will become the primary device. http://msdn.microsoft.com/en-us/library/dd183413%28VS.85%29.aspx I have no experience calling a dll, how can i change the primary monitor? Do I have to enumerate displays first? Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 18, 2009 Share Posted August 18, 2009 I was looking the UDF Screen Resolution Change source, and in MSDN documentation there is this option:CDS_SET_PRIMARYThis device will become the primary device.http://msdn.microsoft.com/en-us/library/dd183413%28VS.85%29.aspxI have no experience calling a dll, how can i change the primary monitor? Do I have to enumerate displays first?Post a link to the particular UDF you are looking at. You have the right idea to enumerate the displays and get the exact string first. You could possibly hard code that string device name, but it would be less reliable. >_< Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now