Influx Posted December 31, 2008 Posted December 31, 2008 I was wondering if there was any way to set a window below all windows and keep it there (for a desktop liek effect)
Zedna Posted December 31, 2008 Posted December 31, 2008 (edited) #NoTrayIcon #include <GUIConstantsEx.au3> #include <WinAPI.au3> $Form1 = GUICreate("Ttile", 300, 200, -1, -1) $ListView1 = GUICtrlCreateListView("A|B|C", 15, 15, 270, 118) GUISetState(@SW_SHOW) ; assign parent to desktop --> stay behind all apps $desktop = ControlGetHandle("Program Manager",'','SysListView321') _WinAPI_SetParent($Form1, $desktop) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Edited December 31, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
rasim Posted December 31, 2008 Posted December 31, 2008 #NoTrayIcon #include <GUIConstantsEx.au3> #include <WinAPI.au3> $Form1 = GUICreate("Ttile", 300, 200, -1, -1) $ListView1 = GUICtrlCreateListView("A|B|C", 15, 15, 270, 118) GUISetState(@SW_SHOW) ; assign parent to desktop --> stay behind all apps $desktop = ControlGetHandle("Program Manager",'','SysListView321') _WinAPI_SetParent($Form1, $desktop) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Nice trick my friend!
Zedna Posted December 31, 2008 Posted December 31, 2008 (edited) Nice trick my friend!Thanks rasim You have nice tricks in your arsenal too EDIT: changed smiley Edited December 31, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Influx Posted December 31, 2008 Author Posted December 31, 2008 very nice , however when i kill explorer.ee and replace it with my shell, will this still work?
Influx Posted January 2, 2009 Author Posted January 2, 2009 if explorer.exe is not running this doesnt work. i want a way to make it stay below all other windows when explorer.exe is not running.
Moderators SmOke_N Posted January 2, 2009 Moderators Posted January 2, 2009 (edited) if explorer.exe is not running this doesnt work. i want a way to make it stay below all other windows when explorer.exe is not running.Looks like it's time for you to search the forum (because it's been answered), or learn how to use M$ API calls: http://msdn.microsoft.com/en-us/library/ms633545(VS.85).aspxEdit:http://www.autoitscript.com/forum/index.php?showtopic=70539 Example 1 of many. Edited January 2, 2009 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Influx Posted January 2, 2009 Author Posted January 2, 2009 i have done a search andd they all consist of setting it to the parent of process manager. my app will close explorer.exe(therefor the window no longer exists to set it parent to). Is there perhaps a way to do the oposit and set it to the child of every open window?
Moderators SmOke_N Posted January 3, 2009 Moderators Posted January 3, 2009 bumpI gave you a link to fix your issues, write some code, see if it works, post it if it doesn't, but don't bump until you've proved you've tried. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Influx Posted January 4, 2009 Author Posted January 4, 2009 i just said the nly code i found on that page REQUIRES explorer.exe to be running, this app will run without explorer.exe running.
Moderators SmOke_N Posted January 4, 2009 Moderators Posted January 4, 2009 i just said the nly code i found on that page REQUIRES explorer.exe to be running, this app will run without explorer.exe running.Then you obviously haven't taken the time to read the link I've provided. Or you only saw 1 solution and skipped the rest (specifically what Martin was working on in that thread). Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
BrettF Posted January 5, 2009 Posted January 5, 2009 Amazing how work on your part can yield results isn't it? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
bundyxc Posted January 5, 2009 Posted January 5, 2009 Amazing how work on your part can yield results isn't it?Quite clever, I must say. Global $arr[2] $arr[0]="hip" $arr[1]="hip" ;^^ hip hip array. ^^
Influx Posted January 6, 2009 Author Posted January 6, 2009 lol well the post said the code didnt work perfectly.... so i assumed it wouldnt, however for my use it seems to work pretty well.
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