Jump to content
Sign in to follow this  
Influx

on bottom window?

Recommended Posts

Influx

I was wondering if there was any way to set a window below all windows and keep it there (for a desktop liek effect)

Share this post


Link to post
Share on other sites
Zedna

#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 by Zedna

Share this post


Link to post
Share on other sites
rasim

#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!

Share this post


Link to post
Share on other sites
Influx

very nice , however when i kill explorer.ee and replace it with my shell, will this still work?

Share this post


Link to post
Share on other sites
Influx

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.

Share this post


Link to post
Share on other sites
SmOke_N

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).aspx

Edit:

http://www.autoitscript.com/forum/index.php?showtopic=70539 Example 1 of many.

Edited 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.

Share this post


Link to post
Share on other sites
Influx

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?

Share this post


Link to post
Share on other sites
SmOke_N

bump

I 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.

Share this post


Link to post
Share on other sites
Influx

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.

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
BrettF
bundyxc

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. ^^

Share this post


Link to post
Share on other sites
Influx

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.