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?
How to make so that the Label control is always on top of all other controls(including pictures and RTF), regardless of their moves, and changes?
Function GUICtrlSetState($Label, $GUI_ONTOP) does not work.
The values are:
10 - 6 - 56 - 37 - 21
And i need transform the array in:
6 - 10 - 21 - 37 - 56
I try but return:
10 - 21 - 37 - 56 - 6
Note: I need the ascending.
That is, 6 can not be greater than 56