James Posted February 21, 2007 Share Posted February 21, 2007 Hey, I am just wandering how I would go about making a window turn Grey.. Well, my GUI that is. I need the GUI to turn Grey but so you still see the things and a message box to stay in colour, which is then created after the grey has been done. If you need more info then please ask. Thanks, Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 21, 2007 Share Posted February 21, 2007 Hi, you mean something like : expandcollapse popup#include <prospeed.au3> #include <GUIConstants.au3> $r = GUICreate("My GUI", 400, 200, 300, 300) ; will create a dialog box that when displayed is centered $b = GUICtrlCreateButton("close", 10, 10, 100, 30) GUISetState(@SW_SHOW) WinSetOnTop("My GUI", "", 1) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $b Then $gui = _GreyBackground(0, 1, 0) Sleep(500) Exit (0) EndIf WEnd Func _GreyBackground($iBlur = 0, $iFade = 0, $onTop = 1) ;ControlFocus("Program Manager", "", "SysListView321") ScreenShot (@ScriptDir & "\Desktop.jpg", @DesktopWidth, @DesktopHeight, 0, 0, 1) Local $iGui = GUICreate("Prospeed", @DesktopWidth, @DesktopHeight, 0, 0, -2147483648, 128);$WS_POPUP, $WS_EX_TOOLWINDOW If $onTop Then WinSetOnTop($iGui, "", 1) WinSetTrans($iGui, "", 1) GUISetState() $dsktop = LoadImage (@ScriptDir & "\Desktop.jpg", 0, 0, @DesktopWidth, @DesktopHeight, 0) Grey ($dsktop, 0, 0, 1) If $iFade Then For $i = 1 To 255 Step 5 WinSetTrans($iGui, "", $i) Next WinSetTrans($iGui, "", 255) Else WinSetTrans($iGui, "", 255) EndIf If $iBlur Then blur ($dsktop, 0, 0, 30, 1) Return $iGui EndFunc ;==>_GreyBackground ??? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
toothyXdip Posted February 22, 2007 Share Posted February 22, 2007 dont know if this is what you want (you said gray SCALE so i dont think it is) but here you go: #include <GUIConstants.au3> GUICreate("My GUI", 400, 200, 300, 300) ; will create a dialog box that when displayed is centered $graybutton = GUICtrlCreateButton("gray", 10, 10, 100, 30) $background = GUISetBkColor(0xff00cc) GUISetState(@SW_SHOW) While 1 $m = GUIGetMsg() Select Case $m = $GUI_EVENT_CLOSE ExitLoop Case $m = $graybutton $background = GUISetBkColor(0x666666) EndSelect WEnd ---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝'''║'''╝╝║'''║......║'''║'''║'''║'''''''''║'''''''''║'''║---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''╝''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝ Link to comment Share on other sites More sharing options...
James Posted February 22, 2007 Author Share Posted February 22, 2007 The.Meger, perfect. Is there away of only making the AutoIT GUI do that? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 24, 2007 Share Posted February 24, 2007 Hi, sure. All you have to do is take the screenshot from the coordinates of you gui. Put the screenshot above the gui and then fade it to grey. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Confuzzled Posted March 4, 2007 Share Posted March 4, 2007 Hey,I am just wandering how I would go about making a window turn Grey.. Well, my GUI that is. I need the GUI to turn Grey but so you still see the things and a message box to stay in colour, which is then created after the grey has been done.If you need more info then please ask.Thanks,SecureYou mean like the Vista 'allow security access' screen?You're not trying to fool anyone into giving your skript extra access, are you? 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