Jump to content

Show desktop message


Rawox
 Share

Recommended Posts

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

Link to comment
Share on other sites

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 by Strykerraven
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...