Advertisement
Guest User

Untitled

a guest
May 30th, 2015
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 3.35 KB | None | 0 0
  1. #AutoIt3Wrapper_Au3Check_Parameters=-w 1 -w 2 -w 3 -w 4 -w 5 -w 6
  2. #NoTrayIcon
  3. #include "C:\Users\Testdcaz\Documents\FunFun.au3"
  4. #include <WindowsConstants.au3>
  5. #include <WinAPI.au3>
  6. #include <GUIConstantsEx.au3>
  7. #include <ColorConstantS.au3>
  8. #include "C:\Users\Testdcaz\Documents\GIFAnimation.au3"
  9.  
  10. ;Opt("MustDeclareVars", 1)
  11.  
  12. FileInstall ( "C:\Users\Testdcaz\Documents\giffy.gif", @TempDir & "\giffy.gif" )
  13. FileInstall ( "C:\Users\Testdcaz\Documents\giff2.gif", @TempDir & "\giff2.gif" )
  14. Global $sFile = @TempDir & "\giffy.gif"
  15. Global $sFile2 = @TempDir & "\giff2.gif"
  16. Global $hGIF2
  17. Global $aGIFDimension = _GIF_GetDimension($sFile)
  18. Global $hGui
  19. Global $hGui = GUICreate("GIF Animation", $aGIFDimension[0], $aGIFDimension[1], @DesktopWidth - 455, @DesktopHeight - 355, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST), WinGetHandle("Program Manager"))
  20. Global $hGIF = _GUICtrlCreateGIF($sFile, "", 0, 0)
  21. Global $flagg
  22. Global $aProcName
  23. Global $aProcPid
  24. Global $nProcPid
  25. Global $Name = "Miku"
  26. Global $i
  27. Global $e
  28. Global $frase
  29. Global $gotit
  30. Global $ran1
  31. Global $ran2 = 5
  32.  
  33. GUISetBkColor(345)
  34. _WinAPI_SetLayeredWindowAttributes($hGui, 345, 255)
  35. _WinAPI_SetParent($hGui, 0)
  36. GUISetState()
  37.  
  38.  
  39. While 1
  40.  
  41.     WinSetOnTop ("GIF Animation", "", 1)
  42.     If GUIGetMsg() = $GUI_EVENT_PRIMARYDOWN Then
  43.        _GIF_DeleteGIF ($hGIF, 1)
  44.        $hGIF2 = _GUICtrlCreateGIF($sFile2, "", 0, 0)
  45.        _WinAPI_SetLayeredWindowAttributes($hGui, 345, 255)
  46.        _WinAPI_SetParent($hGui, 0)
  47.        ToolTip ( "Don't touch me, you perv!", @DesktopWidth - 455, @DesktopHeight - 355, "", 0 )
  48.        Sleep (4000)
  49.        ToolTip ("")
  50.        _GIF_DeleteGIF ($hGIF, 1)
  51.        $hGIF = _GUICtrlCreateGIF($sFile, "", 0, 0)
  52.        _WinAPI_SetLayeredWindowAttributes($hGui, 345, 255)
  53.        _WinAPI_SetParent($hGui, 0)
  54.        WinSetOnTop ("GIF Animation", "", 1)
  55.     EndIf
  56.  
  57. If WinGetTitleAdvice ("scite") Then
  58. If $gotit > 0 Then
  59. ToolTip ("SciTE... they made me with that", @DesktopWidth - 455, @DesktopHeight - 355, "", 0)
  60. Sleep (2000)
  61. ToolTip ("")
  62. $gotit = 0
  63. EndIf
  64. Else
  65. $gotit = 1  >>>>>>>>>>>>>>>>>>>>>>>>>>> Il problema dovrebbe essere qui
  66. EndIf
  67.  
  68. If WinGetTitleAdvice ("office") Then
  69. If $gotit > 0 Then
  70. ToolTip ("What are you writing?", @DesktopWidth - 455, @DesktopHeight - 355, "", 0)
  71. Sleep (2000)
  72. ToolTip ("")
  73. $gotit = 0
  74. EndIf
  75. Else
  76. $gotit = 1 >>>>>>>>>>>>>>>>>>>>>>>>>>> Il problema dovrebbe essere qui
  77. EndIf
  78.  
  79. WEnd
  80.  
  81. Func KitKat ($frase)
  82.        WinSetOnTop ("GIF Animation", "", 1)
  83.        _GIF_DeleteGIF ($hGIF, 1)
  84.        WinSetOnTop ("GIF Animation", "", 1)
  85.        $hGIF2 = _GUICtrlCreateGIF($sFile2, "", 0, 0)
  86.        WinSetOnTop ("GIF Animation", "", 1)
  87.        _WinAPI_SetLayeredWindowAttributes($hGui, 345, 255)
  88.        WinSetOnTop ("GIF Animation", "", 1)
  89.        _WinAPI_SetParent($hGui, 0)
  90.        WinSetOnTop ("GIF Animation", "", 1)
  91.        ToolTip ( $frase, @DesktopWidth - 455, @DesktopHeight - 355, "", 0 )
  92.        WinSetOnTop ("GIF Animation", "", 1)
  93.        Sleep (4000)
  94.        ToolTip ("")
  95.        _GIF_DeleteGIF ($hGIF, 1)
  96.        WinSetOnTop ("GIF Animation", "", 1)
  97.        $hGIF = _GUICtrlCreateGIF($sFile, "", 0, 0)
  98.        WinSetOnTop ("GIF Animation", "", 1)
  99.        _WinAPI_SetLayeredWindowAttributes($hGui, 345, 255)
  100.        WinSetOnTop ("GIF Animation", "", 1)
  101.        _WinAPI_SetParent($hGui, 0)
  102.        WinSetOnTop ("GIF Animation", "", 1)
  103. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement