Sign in to follow this  
Followers 0
Rawox

Show desktop message

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Strykerraven

Share this post


Link to post
Share on other sites

Yes Strykerraven thanks for your reply... I think I can do it with this ;) But better options are always welcome :evil:

Share this post


Link to post
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
Sign in to follow this  
Followers 0