Jump to content

Recommended Posts

Posted (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 by Zedna
Posted

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

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
Posted (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).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.

Posted

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
Posted

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.

Posted

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
Posted

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.

Posted

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

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.

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
×
×
  • Create New...