quantic Posted May 29, 2009 Share Posted May 29, 2009 Hi, first post and hope to learn a lot in here. I never used AutoIt before (mainly using PowerPro) and no knowledge at all in advanced srcipting, so go easy, please. I'd like a script that can dim the entire desktop, except the active window like some tutorial applications out there. Is this doable? If yes, I'd like it to be as simple as possible in order to understand which line does what. Thanks Link to comment Share on other sites More sharing options...
Zedna Posted May 29, 2009 Share Posted May 29, 2009 What represent your "dim"? You must be exact in your questions! I think you should look at _ScreenCapture_Capture() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
quantic Posted May 29, 2009 Author Share Posted May 29, 2009 (edited) What represent your "dim"?You must be exact in your questions!Sorry, but English is not my native language. I thought it was clear but anyway here's a screenshot to explain it visually:http://www.lifeclever.com/wp-content/uploa...immenushade.jpgDoodim (This is for Mac but I've seen similar apps for Windows that can do this)http://www.freemacware.com/doodimBasically I want to dim the entire desktop and leave focus on the active window, defined in script or not.Something like this:execute applicationwait to became activedim desktop & focus active windowwhen application is terminated give back focus to the desktop Edited May 29, 2009 by quantic Link to comment Share on other sites More sharing options...
Pain Posted May 29, 2009 Share Posted May 29, 2009 A small example. Just change it to get WinGetTitle or something and give the active window focus instead. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("", @DesktopWidth, @DesktopHeight-30, 0, 0, $WS_POPUP, BitOR($WS_EX_TOOLWINDOW, $WS_EX_LAYERED)) GUISetBkColor(0x000000) GUISetState() WinSetTrans($GUI, "", 200) GUICreate("test", 200, 200) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd Link to comment Share on other sites More sharing options...
quantic Posted May 29, 2009 Author Share Posted May 29, 2009 A small example.Small is Beautiful!Thank you so much! That's exactly what I wanted and also perfectly clear.Appreciated the quick help! Link to comment Share on other sites More sharing options...
Pain Posted May 29, 2009 Share Posted May 29, 2009 You'r welcome Link to comment Share on other sites More sharing options...
Zedna Posted June 5, 2009 Share Posted June 5, 2009 A small example. Just change it to get WinGetTitle or something and give the active window focus instead. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("", @DesktopWidth, @DesktopHeight-30, 0, 0, $WS_POPUP, BitOR($WS_EX_TOOLWINDOW, $WS_EX_LAYERED)) GUISetBkColor(0x000000) GUISetState() WinSetTrans($GUI, "", 200) GUICreate("test", 200, 200) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEndlittle improvement: GUISetState(@SW_DISABLE) ... $GUI = GUICreate("", @DesktopWidth, @DesktopHeight-30, 0, 0, $WS_POPUP, BitOR($WS_EX_TOOLWINDOW, $WS_EX_LAYERED)) GUISetBkColor(0x000000) GUISetState(@SW_DISABLE) GUISetState() WinSetTrans($GUI, "", 200) ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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