Advertisement
Baoulettes

hummmm?

Jan 24th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. workingdir = %A_Programfiles%\YouTube View Booster\Engine
  2. restr:
  3. OnMessage(0x200,"")
  4. DllCall("DestroyCursor","Uint",hCurs)
  5. gui 1:+disabled
  6. gui 8:+owner -0x20000
  7. Gui, 8:Add, CheckBox, backgroundtrans vc2 grestore x23 y157 w13 h13,
  8. Gui, 8:Add, CheckBox, backgroundtrans vc3 greststickyinp x23 y210 w13 h13,
  9. Gui, 8:Add, CheckBox, backgroundtrans vc4 gmsgprvdat x23 y273 w13 h13,
  10. Gui, 8:Font, S12 CWhite, Tahoma
  11. Gui, 8:Add, Text, x55 y154 w184 h36 +backgroundtrans, Reset Options data
  12. Gui, 8:Add, Text, x56 y207 w184 h36 +backgroundtrans, Reset StickyInput data
  13. Gui, 8:Add, Text, x56 y260 w184 h36 +backgroundtrans, Reset Message Prevention data
  14. Gui, 8:Add, Button, x23 y325 w100 h30 g8guiclose, OK
  15. gui, 8:show, hide xcenter ycenter h381 w341, Data Reset
  16. speedfade("Data Reset", "out", 0)
  17. fade("Data Reset", "in", 0)
  18. return
  19.  
  20. 8guiclose:
  21. 8guiescape:
  22. fade("Data Reset", "out", 0)
  23. gui, 8:destroy
  24. gui 1:-disabled
  25. envset, xa, 0
  26. ifequal, clearbnt1, 1
  27. {
  28. envadd, xa, 1
  29. }
  30. ifequal, clearbnt2, 2
  31. {
  32. envadd, xa, 1
  33. }
  34. ifequal, clearbnt3, 3
  35. {
  36. envadd, xa, 1
  37. }
  38. ifgreaterorequal, xa, 1
  39. {
  40. goto delselc
  41. }
  42. else
  43. {
  44. goto deldeselc
  45. }
  46. return
  47.  
  48. restore:
  49. GuiControlGet, vcc2,8:, c2
  50. ifequal, vcc2, 1
  51. {
  52. ifequal, clearbnt1, 1
  53. {
  54. clearbnt1 = 0
  55. }
  56. else
  57. {
  58. clearbnt1 = 1
  59. }
  60. }
  61. return
  62.  
  63. reststickyinp:
  64. GuiControlGet, vcc3,8:, c3
  65. ifequal, vcc3, 1
  66. {
  67. ifequal, clearbnt2, 2
  68. {
  69. clearbnt2 = 0
  70. }
  71. else
  72. {
  73. clearbnt2 = 2
  74. }
  75. }
  76. return
  77.  
  78. msgprvdat:
  79. GuiControlGet, vcc4,8:, c4
  80. ifequal, vcc4, 1
  81. {
  82. ifequal, clearbnt3, 3
  83. {
  84. clearbnt3 = 0
  85. }
  86. else
  87. {
  88. clearbnt3 = 3
  89. }
  90. }
  91. return
  92.  
  93. delselc:
  94. msgbox, delselc
  95. return
  96.  
  97. deldeselc:
  98. msgbox, deldeselc
  99. return
  100.  
  101. speedfade(window, dir, int)
  102. {
  103. detecthiddenwindows, on
  104. loop, 1
  105. {
  106. winset, trans, % (dir="out")?(255-(A_Index*255)):(dir="in")?(0+(A_Index*255)):"", %window%
  107. }
  108. detecthiddenwindows, off
  109. }
  110.  
  111. fade(window, dir, int)
  112. {
  113. detecthiddenwindows, on
  114. ifwinnotexist, %window%
  115. return
  116. If (dir="in")
  117. winshow, %window%
  118. loop, 37
  119. {
  120. winset, trans, % (dir="out")?(255-(A_Index*7)):(dir="in")?(0+(A_Index*7)):"", %window%
  121. sleep, 1
  122. }
  123. detecthiddenwindows, off  
  124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement