enneract Posted July 16, 2010 Posted July 16, 2010 I have a script which polls the desktop resolution every 30 seconds looking for a change to a particular resolution. Is there a way to use autoit to hook the resolution change system event, so that this script becomes more efficient and responds instantly to the change? I'm not finding anything specific to this on search, if someone could point me in the right direction?
enneract Posted July 16, 2010 Author Posted July 16, 2010 (edited) And, of course, cursory investigation yields fruit. GUIRegisterMsg($WM_DiSPLAYCHANGE, "Do_Something") this would work, right? And is there any reason why I shouldn't use GUICreate("", 0,0,0,0) since GUIRegisterMsg requires a gui element to recieve the notification? Edited July 16, 2010 by enneract
KaFu Posted July 16, 2010 Posted July 16, 2010 And is there any reason why I shouldn't use GUICreate("", 0,0,0,0) since GUIRegisterMsg requires a gui element to recieve the notification? I think GUICreate("") would be sufficient, just dont show the GUI with GuiSetState() ... 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)
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