Jump to content

on bottom window?


Influx
 Share

Recommended Posts

#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
Link to comment
Share on other sites

#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!
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...