Jump to content

how to change the screen identify number?


arong
 Share

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...