epicfail Posted September 18, 2009 Share Posted September 18, 2009 hi i have a slider in my script to change the transparent of my gui with WinSetTrans but how would i make it so that it only sets the transparent of the background image not the other images? Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 18, 2009 Share Posted September 18, 2009 hi i have a slider in my script to change the transparent of my gui with WinSetTrans but how would i make it so that it only sets the transparent of the background image not the other images?Try some experiments with _WinAPI_SetLayeredWindowAttributes(). See help file. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Yashied Posted September 18, 2009 Share Posted September 18, 2009 Look at _WinAPI_AlphaBlend() from WinAPIEx.au3. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
epicfail Posted September 20, 2009 Author Share Posted September 20, 2009 the prob with _WinAPI_AlphaBlend() is that i still want to be able to see the other screens under my gui when i use the transparent thing but with _WinAPI_AlphaBlend() it makes it so u see the gray gui Link to comment Share on other sites More sharing options...
epicfail Posted September 20, 2009 Author Share Posted September 20, 2009 i cant find _WinAPI_SetLayeredWindowAttributes() in the help file Link to comment Share on other sites More sharing options...
martin Posted September 20, 2009 Share Posted September 20, 2009 i cant find _WinAPI_SetLayeredWindowAttributes() in the help fileYou need the latest Beta version or search the forums where you will find many copies of the function. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
epicfail Posted September 20, 2009 Author Share Posted September 20, 2009 i dont think they do what i want tho Link to comment Share on other sites More sharing options...
Yashied Posted September 20, 2009 Share Posted September 20, 2009 #Include <GUIConstantsEx.au3> #Include <WindowsConstants.au3> #Include <WinAPIEx.au3> $hForm = GUICreate('', 800, 600, -1, -1, $WS_POPUP) GUICtrlCreatePic(@WindowsDir & '\Web\Wallpaper\Ascent.jpg', 0, 0, 800, 600, -1, $GUI_WS_EX_PARENTDRAG) $hMain = GUICreate('', 800, 600, -1, -1, $WS_POPUP, $WS_EX_LAYERED, $hForm) GUISetBkColor(0xABABAB) GUICtrlCreateButton('OK', 365, 560, 70, 23) GUICtrlCreateEdit('', 40, 40, 720, 503) _WinAPI_SetLayeredWindowAttributes($hMain, 0xABABAB, 0, $LWA_COLORKEY) GUIRegisterMsg($WM_MOVE, 'WM_MOVE') WinSetTrans($hForm, '', 127) GUISetState(@SW_SHOW, $hForm) GUISetState(@SW_SHOW, $hMain) While 1 $Msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func WM_MOVE($hWnd, $iMsg, $wParam, $lParam) WinMove($hMain, '', BitAND($lParam, 0xFFFF), BitShift($lParam, 16)) Return $GUI_RUNDEFMSG EndFunc ;==>WM_MOVE My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Yashied Posted September 20, 2009 Share Posted September 20, 2009 epicfail, you could say thanks or something. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 21, 2009 Share Posted September 21, 2009 epicfail, you could say thanks or something. Well, I liked your script! Two minor changes though: 1. Requires standard WinAPI.au3 from Beta, not WinAPIEx.au3 2. $GUI_EVENT_CLOSE can't be used because there's not 'X' window control visible. This runs (Beta) with the include fixed and the button used to close it: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> $hForm = GUICreate('', 800, 600, -1, -1, $WS_POPUP) GUICtrlCreatePic(@WindowsDir & '\Web\Wallpaper\Ascent.jpg', 0, 0, 800, 600, -1, $GUI_WS_EX_PARENTDRAG) $hMain = GUICreate('', 800, 600, -1, -1, $WS_POPUP, $WS_EX_LAYERED, $hForm) GUISetBkColor(0xABABAB) $ctrlButton = GUICtrlCreateButton('CLOSE', 365, 560, 70, 23) GUICtrlCreateEdit('', 40, 40, 720, 503) _WinAPI_SetLayeredWindowAttributes($hMain, 0xABABAB, 0, $LWA_COLORKEY) GUIRegisterMsg($WM_MOVE, 'WM_MOVE') WinSetTrans($hForm, '', 127) GUISetState(@SW_SHOW, $hForm) GUISetState(@SW_SHOW, $hMain) While 1 $Msg = GUIGetMsg() Switch $Msg Case $ctrlButton Exit EndSwitch WEnd Func WM_MOVE($hWnd, $iMsg, $wParam, $lParam) WinMove($hMain, '', BitAND($lParam, 0xFFFF), BitShift($lParam, 16)) Return $GUI_RUNDEFMSG EndFunc ;==>WM_MOVE Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Yashied Posted September 21, 2009 Share Posted September 21, 2009 Two minor changes though:1. Requires standard WinAPI.au3 from Beta, not WinAPIEx.au32. $GUI_EVENT_CLOSE can't be used because there's not 'X' window control visible.1. As I understood the OP does not work in Beta.2. $GUI_EVENT_CLOSE also works when you press the ESC key (it just example). My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
epicfail Posted September 21, 2009 Author Share Posted September 21, 2009 how can i say thanks when im asleep? anyway thanks guys will try them out 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