KaFu Posted August 30, 2009 Author Share Posted August 30, 2009 (edited) How can I make a setting to disable screen 2 and then a setting to enable screen 2 ?? when I play games I normally want screen 2 disabled...I'm not sure , definitively not with this script ...Though I did some research, but sadly without a satisfying solution. This onehttp://www.autoitscript.com/forum/index.php?showtopic=87625&view=findpost&p=629215can be used to toggle the monitors power. It sends a message to a window, in the example it seems to be the Desktop window itself. Maybe it works, if you first enumerate your desktop size and monitors position, create an own small invisible window on the respective monitor and than send the message to that window? Give it a try ...Edit: My Google search didn't came up with a satisfying solution for dual / secondary monitors either, lots of questions there but no real answers. Edited August 30, 2009 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Hyflex Posted September 2, 2009 Share Posted September 2, 2009 I'm not sure , definitively not with this script ...Though I did some research, but sadly without a satisfying solution. This onehttp://www.autoitscript.com/forum/index.php?showtopic=87625&view=findpost&p=629215can be used to toggle the monitors power. It sends a message to a window, in the example it seems to be the Desktop window itself. Maybe it works, if you first enumerate your desktop size and monitors position, create an own small invisible window on the respective monitor and than send the message to that window? Give it a try ...Edit: My Google search didn't came up with a satisfying solution for dual / secondary monitors either, lots of questions there but no real answers.I did just find something, I never knew this was in ATI Catalyst Control Center.Basically you setup your settings for your two screens and then go Options > Profiles > Profile Manager.Select "all Catalyst Control Center Settings Fill in a name at the top of the screen for example: Dual and a description: Dual Screen Settings.Now click on Activation, Tick Hotkeys assignment and below you should see "select hotkeys modifier keys" mine is set to CTRL + ALTThe box below is "Enter a Hotkeys Selection" I have set for all this one 2 so if I press CTRL + ALT + 2 it will only keep two of my screens on.You can also tick the box "Desktop Shortcut" which puts a shortcut on your desktop so ifyou doubble click it then your settings will change to your Dual Screen ProfileYou can then go set your settings so only 1 screen is on and follow the same guide above and set it to CTRL + ALT + 1 and then when you press this it will change to 1 screen and if you do CTRL + ALT + 2 it will switch back to two screens.I have 4 hotkeys set and so easy now Link to comment Share on other sites More sharing options...
KaFu Posted October 25, 2009 Author Share Posted October 25, 2009 (edited) Changelog v0.0.2.2 > v0.0.2.7GeneralCustom allocation of HotKeys (utilizes HotKey.au3 and HotKeyInput.au3 by Yashied, Kudos for those functions m8!)Added button to re-detect supported resolutionsSource and Executable are available athttp://www.funk.euBest Regards Edited October 25, 2009 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Yashied Posted October 25, 2009 Share Posted October 25, 2009 Changelog v0.0.2.2 > v0.0.2.7GeneralCustom allocation of HotKeys (utilizes HotKey.au3 and HotKeyInput.au3 by Yashied, Kudos for those functions m8!)Added button to re-detect supported resolutionsSource and Executable are available athttp://www.funk.euBest RegardsNice, but why 0.0.2.7? Maybe 2.7 is better? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
KaFu Posted October 25, 2009 Author Share Posted October 25, 2009 Nice, but why 0.0.2.7? Maybe 2.7 is better? Thanks ... I always start my scripts as version 0.0.0.1 (Version property supports four digits) and then enumarte it up, so it seldom has to say anything about the scripts maturity ... maybe I'll switch to v1 when releasing next time, v1.0.2.7 sounds better ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
hbonwit Posted April 28, 2010 Share Posted April 28, 2010 Along the same lines, I'd really like to be able to control the resolution on two monitors -- one built in laptop, the other external LCD. I think you've already provided the method for this, but I can't figure out how to specify which monitor to change resolution on. Can you help? (My external LCD often boots at a low resolution, and even using the windows slider bar in right-click, display properties, settings, doesn't allow the slider to move to the right far enough (it doesn't know it's a 1920x1200 resolution capable).) Link to comment Share on other sites More sharing options...
KaFu Posted April 28, 2010 Author Share Posted April 28, 2010 No multi-display support... yet , it's on my list. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
KaFu Posted January 15, 2011 Author Share Posted January 15, 2011 Updated to v1.0 (at least a decent version number ). Fixed the annoying (and self introduced) UAC bug. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
hypertyper Posted February 10, 2011 Share Posted February 10, 2011 (edited) Love this tool. It seems that on my virtual machine though the resolution associated with a hotkey changes when I restart the PC. Can you don't save the resolution associated with a particular hotkey? It seems that it does actually work but it gets displayed differently on the GUI. Strange. Either way, that's all I need. It works, who cares what it looks like Edited February 10, 2011 by hypertyper Link to comment Share on other sites More sharing options...
KaFu Posted February 10, 2011 Author Share Posted February 10, 2011 It seems that it does actually work but it gets displayed differently on the GUI. Strange. Either way, that's all I need. It works, who cares what it looks like Will take a look why the GUI is not updated correctly, glad you like it ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
hypertyper Posted February 10, 2011 Share Posted February 10, 2011 I just double checked and it's not just the gui that's not updating. After the reboot the hotkeys remain, the resolutions both point to the current resolutions and the hotkeys don't work. I set the resolutions with their relevant hotkeys, then I reboot the VM and when I start HRC again, the hotkeys are still there but they both point to the current resolution. Maybe save the resolution with the hotkey? I'm not sure whether this is any different when using a normal PC rather than a VM. Link to comment Share on other sites More sharing options...
KaFu Posted February 10, 2011 Author Share Posted February 10, 2011 (edited) Thanks for pointing out the different scenarios, I'll check it out this evening . Edited February 10, 2011 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
KaFu Posted February 10, 2011 Author Share Posted February 10, 2011 Changelog v1.0 > v1.1GeneralFixed hotkey assignment issue, thanks hypertyper for pointing out Fixed HRC restart issueFixed DEP errorSource and Executable are available athttp://www.funk.euBest Regards OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
hypertyper Posted February 15, 2011 Share Posted February 15, 2011 I've installed the new version, deleted the old ini and after a restart both hotkeys still point to the same resolution. I'm using VMware workstation which I assume is part of the problem. How about saving the relevant resolution with its hotkey in the ini file? That way the restart won't have an impact. It would be really cool if you could get it to work. If I have time I might have a look at the source code and see if I can come up with something... Danke Link to comment Share on other sites More sharing options...
KaFu Posted February 15, 2011 Author Share Posted February 15, 2011 Changelog v1.1 > v1.2GeneralVersion 1.2 should fix another “save settings” issue (hopefully )Source and Executable are available athttp://www.funk.euThanks for pointing this out ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
hypertyper Posted February 15, 2011 Share Posted February 15, 2011 Great update! It now works with restarts and everything. Thanks a lot for this nice little tool and the super quick updates! Link to comment Share on other sites More sharing options...
KaFu Posted February 15, 2011 Author Share Posted February 15, 2011 Thank YOU for pointing out the errors , hell, 8514 downloads and no feedback on these ones until now ! OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
KaFu Posted February 15, 2011 Author Share Posted February 15, 2011 (edited) Behavior on change number of hotkeys was still not right, pls re-download v1.2... Edit: And tray icon was shown to early, might confuse the app... pls re-download again... Edit2: And while I'm at it, I added a trick I've learned today to make the font DPI aware ... you know the game... pls re-download again ... Edited February 15, 2011 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Ascend4nt Posted February 16, 2011 Share Posted February 16, 2011 (edited) Hey, just a question.. have you noticed that the HotKey UDF breaks when you lock the workstation or do a Ctrl-Alt-Del in Windows 7 and use the hotkey while on the selection screen? Try it, go back into Windows, and then try your hotkeys again. I've noticed this behavior in programs I've written using the HotKey UDF. I've tried workarounds like re-hooking the hotkey callback, but it starts looking ugly after a while. From what I've read on this before, it seems there is new behavior in Windows 7 (or was it Vista?), where it will remove hooks from the chain if they take too long to respond. But in all honesty, the hook code doesn't look like it takes much time at all (especially if it has a small list to go through). I've tried the alternative 'GetAsyncKeyState' API call ('_IsPressed'), but that function fails when a program with a higher privilege level is running in the foreground - all keys return as not pressed! Oy, this stuff is driving me mad. *edit: Actually, you don't even need to press the hotkey in the Ctrl-Alt-Del selection screen. Just go to it or the lock-workstation screen a few times, and eventually the hook will fall out on its own! Edited February 16, 2011 by Ascend4nt My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
KaFu Posted February 16, 2011 Author Share Posted February 16, 2011 (edited) That's a really great find m8 . Never noticed this in HRC, but in another program if mine and couldn't track down why the HotKeys suddenly stop to work. Maybe unhooking and re-hooking the keys Edit:http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/56093d14-c1bc-4d0a-a915-57fef0695191http://stackoverflow.com/questions/1639331/using-global-keyboard-hook-wh-keyboard-ll-in-wpf-chttps://gist.github.com/471698Looking at _WinAPI_SetWindowsHookEx() in HotKey.au3 is see that the dwThreadId is 0 by default ("the hook procedure is associated with all existing threads"). Maybe setting this to the calling thread with _WinAPI_GetWindowThreadProcessId($hWnd, $PID) will fix this? Will check out later ... Edited February 16, 2011 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) 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