Jump to content



Photo

_WinSlide UDF


  • Please log in to reply
8 replies to this topic

#1 DaLiMan

DaLiMan

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 386 posts

Posted 22 August 2006 - 07:31 AM

Hi there,

Maybe this is done before, but I was looking for a quick way to slide my GUI from one place to another.

Let me know what you think..... :P

Attached Files


- My Auto-It File'sExplorer/ File Opener - Little tool to easy access the frequently used files and folders.Version: 1.0.3.3WinSlide UDF - A UDF to slide your GUI from A to B on the screen.DateCrackerDL - Little tool to fool some date limited trail software.Version: 0.5.1







#2 51rv4

51rv4

    Seeker

  • New Members
  • 3 posts

Posted 25 August 2006 - 11:57 AM

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

:

#3 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 25 August 2006 - 12:09 PM

it's ok, but I prefer WinAnimate

SciTE for AutoItDirections for Submitting Standard UDFs

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


#4 DaLiMan

DaLiMan

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 386 posts

Posted 25 August 2006 - 12:13 PM

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
- My Auto-It File'sExplorer/ File Opener - Little tool to easy access the frequently used files and folders.Version: 1.0.3.3WinSlide UDF - A UDF to slide your GUI from A to B on the screen.DateCrackerDL - Little tool to fool some date limited trail software.Version: 0.5.1

#5 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 25 August 2006 - 12:19 PM

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, 19 September 2006 - 12:23 AM.

SciTE for AutoItDirections for Submitting Standard UDFs

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


#6 DaLiMan

DaLiMan

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 386 posts

Posted 25 August 2006 - 12:20 PM

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

- My Auto-It File'sExplorer/ File Opener - Little tool to easy access the frequently used files and folders.Version: 1.0.3.3WinSlide UDF - A UDF to slide your GUI from A to B on the screen.DateCrackerDL - Little tool to fool some date limited trail software.Version: 0.5.1

#7 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 25 August 2006 - 12:22 PM

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.


#8 DaLiMan

DaLiMan

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 386 posts

Posted 25 August 2006 - 12:33 PM

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...... :)
- My Auto-It File'sExplorer/ File Opener - Little tool to easy access the frequently used files and folders.Version: 1.0.3.3WinSlide UDF - A UDF to slide your GUI from A to B on the screen.DateCrackerDL - Little tool to fool some date limited trail software.Version: 0.5.1

#9 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 25 August 2006 - 12:53 PM

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

AutoIt         
#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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users