DaLiMan Posted August 22, 2006 Posted August 22, 2006 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..... _WinSlide_demo.au3_WinSlide.au3
51rv4 Posted August 25, 2006 Posted August 25, 2006 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 :
GaryFrost Posted August 25, 2006 Posted August 25, 2006 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.
DaLiMan Posted August 25, 2006 Author Posted August 25, 2006 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
GaryFrost Posted August 25, 2006 Posted August 25, 2006 (edited) http://www.autoitscript.com/forum/index.ph...st&p=199609made 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 fileGary Edited September 19, 2006 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.
DaLiMan Posted August 25, 2006 Author Posted August 25, 2006 it's ok, but I prefer WinAnimateWinAnimate 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
GaryFrost Posted August 25, 2006 Posted August 25, 2006 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.
DaLiMan Posted August 25, 2006 Author Posted August 25, 2006 You are correct, you might think about combining, make the gui animate (appear) from random positions.Well thats an idea , 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 like WinAnimate's :Global Const $AW_DIAG_SLIDE_IN_BOTTOMRIGHT = 0x0004000a ;diag slide-in from Bottom-rightMaybe someday I'll figure it out......
GaryFrost Posted August 25, 2006 Posted August 25, 2006 Might want to search MSDN, also a good tool is ApiViewer 2004 expandcollapse popup#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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now