Netol Posted April 29 Share Posted April 29 My friends Just to ask how I can turn off just the second monitor. (I need the main monitor not to turn off) Link to comment Share on other sites More sharing options...
Developers Jos Posted April 29 Developers Share Posted April 29 (edited) Push the power button? .. or is your question about something else? Edited April 29 by Jos SOLVE-SMART, Netol and Andreik 3 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted April 29 Share Posted April 29 Or you can use my example : “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Netol Posted April 30 Author Share Posted April 30 (edited) On 4/29/2024 at 4:52 PM, Jos said: Push the power button? .. or is your question about something else? I need the code in Autoit to do that Edited May 1 by Netol Link to comment Share on other sites More sharing options...
Netol Posted April 30 Author Share Posted April 30 (edited) On 4/29/2024 at 6:50 PM, Nine said: Or you can use my example : Your information does not solution my problem, but help me in other question that i have. Thanks a lot Edited May 1 by Netol Link to comment Share on other sites More sharing options...
Nine Posted April 30 Share Posted April 30 11 hours ago, Netol said: Your information does nat solution my problem Unless I don't understand what turn off monitor means, my example (read the entire post) does toggle monitor on/off (look at 0xD6 vcp code)... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Netol Posted May 1 Author Share Posted May 1 On 4/30/2024 at 7:43 AM, Nine said: Unless I don't understand what turn off monitor means, my example (read the entire post) does toggle monitor on/off (look at 0xD6 vcp code)... On 4/30/2024 at 7:43 AM, Nine said: Unless I don't understand what turn off monitor means, my example (read the entire post) does toggle monitor on/off (look at 0xD6 vcp code)... Hi my friend, Your information is very god, but i cant turn off only the second monitor with autoit code. I don't know how to modify the code you sent me to turn off only the second monitor Link to comment Share on other sites More sharing options...
Nine Posted May 1 Share Posted May 1 (edited) Sorry I will not write the code for you. You will never learn how to program in AutoIt if all you want is already written code that fits your requirements. We are here to teach how to fish, not to give you fish. You will have to make an effort and post the code you have tried that does not work. Everything you need is inside the example I showed you. ps. Do not reproduce the same code as I gave you, I will simply ignore your post. Edited May 1 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Andreik Posted May 1 Share Posted May 1 I have a similar situation but I am using just the secondary monitor and I use displayswitch. If you are on Win 11 (probably available on other OSs) then you can use this: ShellExecute('DisplaySwitch.exe', '/internal', @WindowsDir & '\Sysnative', Default, @SW_HIDE) This will turn on primary display and turn off all other displays. You have here the full syntax: Quote Syntax DISPLAYSWITCH /Option Options /internal Switch to use the primary display only. 1 All other connected displays will be disabled. /clone The primary display will be mirrored on a second screen. 2 /extend Expand the Desktop to a secondary display. 3 This allows one desktop to span multiple displays. (Default). /external Switch to the external display only (second screen). 4 The current main display will be disabled. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Netol Posted May 2 Author Share Posted May 2 4 hours ago, Andreik said: I have a similar situation but I am using just the secondary monitor and I use displayswitch. If you are on Win 11 (probably available on other OSs) then you can use this: ShellExecute('DisplaySwitch.exe', '/internal', @WindowsDir & '\Sysnative', Default, @SW_HIDE) This will turn on primary display and turn off all other displays. You have here the full syntax: Thanks a lot my friend. When i put your code the windows display this new windows with this options. probably my requirement is much more technical. Thanks a lot but the second monitor is not offline Link to comment Share on other sites More sharing options...
Andreik Posted May 2 Share Posted May 2 It's nothing technical, it looks like the application start without being aware of the passed argument. Try using numerical arguments (see the previous post). Netol 1 When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Netol Posted May 7 Author Share Posted May 7 On 5/2/2024 at 8:45 AM, Andreik said: It's nothing technical, it looks like the application start without being aware of the passed argument. Try using numerical arguments (see the previous post). Ok my friend. Thanks best regards Link to comment Share on other sites More sharing options...
Solution MagnumXL Posted May 8 Solution Share Posted May 8 Years ago, I made a program with Autoit3 to turn off the monitors of any PC I was connected to remotely, Autoit3 can turn off any one or more monitors on a PC natively with no third-party solution needed although, if I recall correctly, it will need to be run as administrator. I recommend this post to get started. Netol 1 Link to comment Share on other sites More sharing options...
Netol Posted May 18 Author Share Posted May 18 thanks a lot to all people that help me best regards 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