arong Posted September 11, 2009 Share Posted September 11, 2009 Would you or anyone else know of a way to change the number a certain monitor is assigned by Windows ? I wanna build a tools to control multi-display, but I meet a problem, I do not know how to get and change the screen number (it can be showed by clicking the “Indentify” button on “display properties->settings” page) by using “WINAPI” thanks. Link to comment Share on other sites More sharing options...
jvanegmond Posted September 11, 2009 Share Posted September 11, 2009 Before you try automating this, see if you can change screen number at all. I don't think Windows supports it. github.com/jvanegmond Link to comment Share on other sites More sharing options...
arong Posted September 12, 2009 Author Share Posted September 12, 2009 Before you try automating this, see if you can change screen number at all. I don't think Windows supports it.but when i use ATI graphic card, I can change it by using "switch displays" in the right click memu, so i think there is a way to change the screen number in winapi, but I do not know. Link to comment Share on other sites More sharing options...
jvanegmond Posted September 12, 2009 Share Posted September 12, 2009 If it only works on a ATI graphics card it's not in the windows API. It's in the ATI API (if it even exists). github.com/jvanegmond Link to comment Share on other sites More sharing options...
martin Posted September 12, 2009 Share Posted September 12, 2009 but when i use ATI graphic card, I can change it by using "switch displays" in the right click memu, so i think there is a way to change the screen number in winapi, but I do not know.The EnumDisplaySettings function return a DEVMODE structure which includes the top left postion on the desktop for the display. Maybe you can change that and pass the modified structure to ChangeDisplaySettingsEx, which also lets you can set if the display is to be the primary display. I don't know but searching for those functions might find something useful. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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