Jump to content

_WinSlide UDF


DaLiMan
 Share

Recommended Posts

I like it DaLiMan!

I am going to use your function to add floating buttons that attach to a Gui and follow it around the screen, like on the title bar on IE, which is a big waste of space.

I didn't find anything while searching for "Floating Toolbar"

TKS

:

Link to comment
Share on other sites

I like it DaLiMan!

I am going to use your function to add floating buttons that attach to a Gui and follow it around the screen, like on the title bar on IE, which is a big waste of space.

I didn't find anything while searching for "Floating Toolbar"

TKS

:

Thanx...

Hmmm, looks nice and interesting. Can U share the script??

PS: Maybe this is of interest too.....

http://www.autoitscript.com/forum/index.ph...f=9&t=25790

http://www.autoitscript.com/forum/index.ph...7&hl=anygui

Link to comment
Share on other sites

http://www.autoitscript.com/forum/index.ph...st&p=199609

made the http://www.autoitscript.com/fileman/users/gafrost/projects/WinAnimate.au3 for ease of use.

Demo is commented out in the bottom of the include file

Gary

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

it's ok, but I prefer WinAnimate

WinAnimate does not let you move the script all over the place.

It slides the window in place, but it only uses the size and location of the GUI to do that...

If I'm wrong let me know!!!

But I agree, _WinAnimate is more advanced...

And if you are capable of DLL call U can use the 'AnimateWindow' function which I found in several scripts I downloaded from the forum...

DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd2, "int", 100, "long", 0x00040001);slide in from left
Link to comment
Share on other sites

WinAnimate does not let you move the script all over the place.

It slides the window in place, but it only uses the size and location of the GUI to do that...

If I'm wrong let me know!!!

But I agree, _WinAnimate is more advanced...

And if you are capable of DLL call U can use the 'AnimateWindow' function which I found in several scripts I downloaded from the forum...

DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd2, "int", 100, "long", 0x00040001);slide in from left
You are correct, you might think about combining, make the gui animate (appear) from random positions.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

You are correct, you might think about combining, make the gui animate (appear) from random positions.

Well thats an idea :nuke: , but beyond my capabilaties.... :">

I don't know where you guy's get all this info about these DLL's.

On MSDN I can see the the options and in which DLL it's in, but how on earth should I know that I need to set an option to 0x0004000a :P like WinAnimate's :

Global Const $AW_DIAG_SLIDE_IN_BOTTOMRIGHT = 0x0004000a ;diag slide-in from Bottom-right

Maybe someday I'll figure it out...... :)

Link to comment
Share on other sites

Might want to search MSDN, also a good tool is ApiViewer 2004

#include <GUIConstants.au3>
#include "WinAnimate.au3"

_Main()

Func _Main()
    $gui = GUICreate("demo", 300, 100, @DesktopWidth, @DesktopHeight)

    $But_Start = GUICtrlCreateButton("Random", 20, 20, 100, 20)
    $But_Stop = GUICtrlCreateButton("Exit", 20, 60, 100, 20)

    _GuiRandomPos($gui, $AW_FADE_IN, $AW_FADE_OUT, 50, 600)

    While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop
            Case $msg = $But_Stop
                ExitLoop
            Case $msg = $But_Start
                _GuiRandomPos($gui, $AW_FADE_IN, $AW_FADE_OUT, 50, 600)
            Case Else
                ;;;
        EndSelect
    WEnd
EndFunc   ;==>_Main


Func _GuiRandomPos(ByRef $gui, ByRef Const $animation_show, ByRef Const $animation_hide, $min, $max)
    $dx = Random($min, $max)
    $dy = Random($min, $max)
    _WinAnimate ($gui, $animation_hide)
    WinMove($gui, "", $dx, $dy)
    _WinAnimate ($gui, $animation_show)
    GUISetState(@SW_SHOW, $gui)
EndFunc   ;==>_GuiRandomPos

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...