Rawox Posted January 7, 2010 Posted January 7, 2010 Hi there, is there any possible way to see of some kind of "show desktop" message is sent in Windows 7. Whenever a user presses WIN+D or clicks on the show desktop part of the taskbar in Windows 7 a messagebox must pop-up? Can this be done using autoit? Thanks in Advance... Rawox
Strykerraven Posted January 9, 2010 Posted January 9, 2010 (edited) Hi there, is there any possible way to see of some kind of "show desktop" message is sent in Windows 7. Whenever a user presses WIN+D or clicks on the show desktop part of the taskbar in Windows 7 a messagebox must pop-up? Can this be done using autoit? Thanks in Advance... Rawox I'm still learning myself but I believe this may help with monitoring for the key press and showing a message: HotKeySet("{LWIN}d", "ShowMessage") and HotKeySet("{RWIN}d", "ShowMessage") This will cause both combos to execute the "ShowMessage" function: Func ShowMessage() MsgBox(4096,"","This is a message.") EndFunc Edit: Added show msg function As for monitoring for the button from what I gather you may have luck with the MouseGetPos ( [dimension] ) function while looping to monitor for a click for a specific area (the button). There are probably easier ways to accomplish this however. Hope I understood correctly Edited January 9, 2010 by Strykerraven
Rawox Posted January 9, 2010 Author Posted January 9, 2010 Yes Strykerraven thanks for your reply... I think I can do it with this But better options are always welcome
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