Michel Claveau Posted August 15, 2009 Share Posted August 15, 2009 (edited) Hi, all! I know insert a GUI (window) inside Desktop: #include<guiconstants.au3> #include<WindowsConstants.au3> #Include <WinAPI.au3> #Include <Constants.au3> $hbureau=WinGetHandle("[CLASS:Progman]") $hGui1 = GUICreate("GUI Embedder",420,300,-1,-1,$WS_POPUP) $btclose=GUICtrlCreateButton("Fermer / Close",100,125,220,50) GUISetState(@SW_SHOW) $origParent1 = DllCall("user32.dll", "int", "SetParent", "hwnd", $hGui1, "hwnd",$hbureau) WinMove($hGui1, "", 80,50) While 1 $Msg = GUIGetMsg() If ($Msg=$GUI_EVENT_CLOSE) Or ($Msg=$btclose) Then DllCall("user32.dll", "int", "SetParent", "hwnd", $hGui1, "hwnd", $origParent1[0]) ExitLoop EndIf sleep(12) WEnd GUIDelete($hGui1) ExitBut the GUI is over icons. Now, I would want it below icons (like background-screen/wallpaper). I tried _WinAPI_SetWindowPos($hGui1, $HWND_BOTTOM, 80, 50, 420, 300, $SWP_NOACTIVATE) to change z-order, but that works with a window inside desktop. An idea? Edited August 15, 2009 by Michel Claveau Link to comment Share on other sites More sharing options...
Yashied Posted August 15, 2009 Share Posted August 15, 2009 I think that this is non-trivial task. 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...
Michel Claveau Posted August 15, 2009 Author Share Posted August 15, 2009 Re!I think that this is non-trivial task.Thank you. But the word "trivial" is not synonym of "impossible".If it is possible, we can re-create (replace) the old (XP) ActiveDesktop, which does not exist any more in Vista & Win-7, with an Autoit's script. Link to comment Share on other sites More sharing options...
martin Posted August 15, 2009 Share Posted August 15, 2009 Re!Thank you. But the word "trivial" is not synonym of "impossible".If it is possible, we can re-create (replace) the old (XP) ActiveDesktop, which does not exist any more in Vista & Win-7, with an Autoit's script.I think you are unlikely to be able to do that. I suspect the desktop is continually updated to ensure that the z-order is kept as required.Maybe instead you could create your window, and copy all the icons and shortcuts on the desktop into your window. 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...
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