Search the web
Sign In
New User? Sign Up
power-pro · Free discussion list for PowerPro users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Dim desktop and focus active window?   Message List  
Reply | Forward Message #35671 of 36674 |
Re: [Solved] Dim desktop and focus active window?

"Sheri" wrote:

>
> You could likely do it with bars. One bar with a single button the size of the
desktop. Button color black. Button transparency as desired. A second bar opened
ontop, with a button sized 200x200.

Dumb me, why didn't I thought about that or why didn't you suggested that
earlier!? :)
Ok, no need to use the script then. That's even better and for what I want, this
covers it nicely.

The above script is an example the author kindly made for me with a window sized
at 200x200 as the active window.
He said to me to replace that with a check for the active window or a specific
app.

But now, with your suggestion, I created this script:
I'm checking/changing for screen settings to make it work with any res.

------------------------------
local xarea, yarea, hwnd

xarea = win.GetSystemMetrics("SM_CXVIRTUALSCREEN")
yarea = win.GetSystemMetrics("SM_CYVIRTUALSCREEN")
hwnd = win.handle("active")

cl.SetWidth("dimdesk", 0, xarea)
cl.SetHeight("dimdesk", 0, yarea)
if (hwnd)
bar.show("dimdesk")
hwnd.OnTop
------------------------------

It works, but is it well coded or can it be optimized/enhanced?






Mon Jul 6, 2009 2:43 pm

quantiworks
Offline Offline
Send Email Send Email

Forward
Message #35671 of 36674 |
Expand Messages Author Sort by Date

I've seen an ahk script called Ghoster that dims the whole desktop except the active window, giving it focus. Something like when you are shutting down the...
quantiworks
Offline Send Email
May 15, 2009
10:49 pm

No ideas? I saw this in msdn in case it helps: http://msdn.microsoft.com/en-us/library/ms633540(VS.85).aspx One other possibility is to use an image that...
quantiworks
Offline Send Email
May 18, 2009
10:51 am

Just want to let the group know that I've found a solution with an AutoIt script. ... #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI =...
quantiworks
Offline Send Email
Jul 6, 2009
1:25 am

... You could likely do it with bars. One bar with a single button the size of the desktop. Button color black. Button transparency as desired. A second bar...
Sheri
silvermoonwo...
Offline Send Email
Jul 6, 2009
4:10 am

... Dumb me, why didn't I thought about that or why didn't you suggested that earlier!? :) Ok, no need to use the script then. That's even better and for what...
quantiworks
Offline Send Email
Jul 6, 2009
2:43 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help