Search the Community
Showing results for tags 'front'.
Found 2 results
Hi All, I'd like to move a window to the top of the stack without it being active. I think it's called z-order in programming? I've tried these 2 options (commenting out 1 at a time obviously), but the 1st doesn't seem to do anything, and the 2nd prevents it from being moved behind the other programs even after clicking on it and then clicking on another window behind it: Local $hWnd = WinGetHandle("[CLASS:MSPaintApp]") _WinAPI_SetWindowPos($hWnd, $HWND_TOP, 0, 0, 0, 0, BitOR($SWP_FRAMECHANGED, $SWP_NOMOVE, $SWP_NOSIZE)) _WinAPI_SetWindowPos($hWnd, $HWND_TOPMOST, 0, 0, 0, 0, BitOR($SWP_FRAMECHANGED, $SWP_NOMOVE, $SWP_NOSIZE)) What can I do to move something to the top of the z-order while allowing it to be manually moved back in the z-order? Thanks!
Subtitle pretty much says it. This program darkens the screen except for the active window with options accessible through a convenient tray icon. Other options are supported as well, including: active window-change fading controlcustom darkening color (instead of default black)background image choice (faded image over background windows. weird, but ok.)etc...Obligatory Screenshot: Download: WindowDarken.zip (source) Off-topic notes: I have no clue if there are other programs that do something similar, nor did I really check. I didn't really check the forum thoroughly either to see if something like this already existed, sorry. This was written initially for Windows XP, so I'm sorry if I wasted your time if something like this exists in your Windows Vista or 7. Tech summary: Forces the active Window as Topmost and a solid "darken" window on top of the normal windosw. Has complications concerning topmost state changes of both windows and other topmost windows. Doesn't seem to get along with some windows (namely GIMP's editor window). Some exclusions are coded in, but there may need to be an option added later to allow custom exclusions. Au188.8.131.52 tested WinXP SP3 tested You may now critique my horrible code. *fires starting pistol* Edit 5-5-2013: Images were not visible