Netol Posted April 29, 2024 Posted April 29, 2024 My friends Just to ask how I can turn off just the second monitor. (I need the main monitor not to turn off)
Developers Jos Posted April 29, 2024 Developers Posted April 29, 2024 (edited) Push the power button? .. or is your question about something else? Edited April 29, 2024 by Jos SOLVE-SMART, Andreik and Netol 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.
Nine Posted April 29, 2024 Posted April 29, 2024 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Netol Posted April 30, 2024 Author Posted April 30, 2024 (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, 2024 by Netol
Netol Posted April 30, 2024 Author Posted April 30, 2024 (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, 2024 by Netol
Nine Posted April 30, 2024 Posted April 30, 2024 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Netol Posted May 1, 2024 Author Posted May 1, 2024 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
Nine Posted May 1, 2024 Posted May 1, 2024 (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, 2024 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Andreik Posted May 1, 2024 Posted May 1, 2024 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.
Netol Posted May 2, 2024 Author Posted May 2, 2024 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
Andreik Posted May 2, 2024 Posted May 2, 2024 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
Netol Posted May 7, 2024 Author Posted May 7, 2024 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
Solution MagnumXL Posted May 8, 2024 Solution Posted May 8, 2024 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
Netol Posted May 18, 2024 Author Posted May 18, 2024 thanks a lot to all people that help me best regards
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