PDA

View Full Version : Always on top ?


jmoisan
09-30-2002, 04:48 PM
Hi there,


I know I asked it before, but is it possible to make a window "always on top" using AMS4, WITHOUT a 3rd party software ? If not, it would be great to implement this feature in a future build ! /ubbthreads/images/icons/smile.gif

Thanks a lot !

Corey
09-30-2002, 10:28 PM
No but WINDOW>BRING TO FRONT exists.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

jmoisan
09-30-2002, 11:00 PM
I know, but I can't make a loop with the "Window > Bring to front" action, it just doesn't make sense ! I've programmed a cool video player using AMS4, and the only thing missing is the "always on top" feature (like Windows Media Player 6.4). Is there a .dll I could include with my program and that would add this functionality (like the .dll you supplied for "save window position") ? If so, where could I find it ?

Thanks in advance !

Corey
10-01-2002, 02:03 AM
Definitely an easy thing to achieve programmatically, now to see if anyone has the time to write a .dll for you... I hope so, that would be a great .dll to have.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

SilverFalcon
03-11-2003, 06:26 AM
Hi There,
I use in my projects the function "setwindowpos", from the windows library: User32.dll, which works in my case.

call the function from autoplay:

%DLLResult% = File.CallDLLFunction ( "%WinDir%\System32\USER32.DLL", "SetWindowPos", "%windowhandlerfrom autoplay%, HWND_TOPMOST,Xpos,Ypos,Width,Height,SWP_NOSIZE,SWP _NOMOVE")

Where
HWND_TOPMOST = -1
SWP_NOSIZE = &H1
SWP_NOMOVE = &H2

See microsoft documentation for full explanation of possible parameters/arguments for "setwinpos"

Hope this helps.