AutoitHacks

MisEfectos v1.0 - Effects with Autoit GUI

May 18th, 2012
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.11 KB | None | 0 0
  1. #NoTrayIcon
  2. #cs ----------------------------------------------------------------------------
  3.  
  4.  AutoIt Version: 3.3.8.1
  5.  Author:      Jesux Herrera - AutoitHacks Admin
  6.  WebPage:     www.autoithacks.tk
  7.  Twitter:     www.twitter.com/JesuxHerrera
  8.  Email:       [email protected]
  9.  Post:        http://www.autoithacks.tk/2012/05/misefectos-v1-0-efectos-con-guis-en-autoit/
  10.  
  11.  Script Function:
  12.               Tipo de Efecto horizontal y vertical en la ventana (GUI).
  13.           Dedicado a mi siempre amada Maricela Puente <3
  14.  
  15. #ce ----------------------------------------------------------------------------
  16. #include <ButtonConstants.au3>
  17. #include <GUIConstantsEx.au3>
  18. #include <StaticConstants.au3>
  19. #include <WindowsConstants.au3>
  20. #include <WinAPI.au3>
  21.  
  22. Local $gui = GUICreate("Mis Efectos :D - www.autoithacks.tk", 357, 149)
  23. Local $Button1 = GUICtrlCreateButton("Cerrar em Horizontal", 96, 24, 179, 25)
  24. $Button2 = GUICtrlCreateButton("Cerrar en Vertical", 96, 56, 179, 25)
  25. $Label1 = GUICtrlCreateLabel("www.autoithacks.tk", 120, 112, 130, 18)
  26. GUICtrlSetFont(-1, 9, 400, 0, "Verdana")
  27. $Group1 = GUICtrlCreateGroup("", 8, 96, 337, 41)
  28. GUICtrlCreateGroup("", -99, -99, 1, 1)
  29. $Group2 = GUICtrlCreateGroup("", 8, 8, 337, 81)
  30. GUICtrlCreateGroup("", -99, -99, 1, 1)
  31. GUISetState(@SW_SHOW)
  32.  
  33. Local $pos = WinGetPos($gui)
  34. Local $rgn
  35. Local $i = 1
  36. Do
  37. $rgn = _WinAPI_CreateRoundRectRgn(0, 0, 370 , $i , 0 ,  357)
  38. _WinAPI_SetWindowRgn($gui, $rgn)
  39. Sleep(1)
  40. $i = $i + 1
  41. Until $i = 200
  42.  
  43. While 1
  44.     $nMsg = GUIGetMsg()
  45.     Switch $nMsg
  46.         Case $GUI_EVENT_CLOSE
  47.             Exit
  48.  
  49.         Case $Button1
  50.                 Local $i = 149
  51.                   Do
  52.                    $rgn = _WinAPI_CreateRoundRectRgn(0, 0, 370 , $i , 0 ,  357)
  53.                    _WinAPI_SetWindowRgn($gui, $rgn)
  54.                    Sleep(1)
  55.                    $i = $i - 1
  56.                 Until $i = 0
  57.                 Exit
  58.  
  59.         Case $Button2
  60.                 Local $i = 370
  61.                   Do
  62.                    $rgn = _WinAPI_CreateRoundRectRgn(0, 0, $i , 200 , 0 ,  357)
  63.                    _WinAPI_SetWindowRgn($gui, $rgn)
  64.                    Sleep(1)
  65.                    $i = $i - 1
  66.                 Until $i = 0
  67.                 Exit
  68.  
  69.     EndSwitch
  70. WEnd
Advertisement
Add Comment
Please, Sign In to add comment