Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5

Thread: Always on top ?

  1. #1
    Join Date
    Jun 2002
    Location
    Sherbrooke, Quebec, Canada
    Posts
    15

    Always on top ?

    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 ! [img]/ubbthreads/images/icons/smile.gif[/img]

    Thanks a lot !

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: Always on top ?

    No but WINDOW>BRING TO FRONT exists.

    Corey Milner
    Creative Director, Indigo Rose Software

  3. #3
    Join Date
    Jun 2002
    Location
    Sherbrooke, Quebec, Canada
    Posts
    15

    Re: Always on top ?

    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 !

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: Always on top ?

    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

  5. #5
    Join Date
    Jan 2003
    Location
    Arhnem , Netherlands
    Posts
    2

    Re: Always on top ?

    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.





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts