Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- workingdir = %A_Programfiles%\YouTube View Booster\Engine
- restr:
- OnMessage(0x200,"")
- DllCall("DestroyCursor","Uint",hCurs)
- gui 1:+disabled
- gui 8:+owner -0x20000
- Gui, 8:Add, CheckBox, backgroundtrans vc2 grestore x23 y157 w13 h13,
- Gui, 8:Add, CheckBox, backgroundtrans vc3 greststickyinp x23 y210 w13 h13,
- Gui, 8:Add, CheckBox, backgroundtrans vc4 gmsgprvdat x23 y273 w13 h13,
- Gui, 8:Font, S12 CWhite, Tahoma
- Gui, 8:Add, Text, x55 y154 w184 h36 +backgroundtrans, Reset Options data
- Gui, 8:Add, Text, x56 y207 w184 h36 +backgroundtrans, Reset StickyInput data
- Gui, 8:Add, Text, x56 y260 w184 h36 +backgroundtrans, Reset Message Prevention data
- Gui, 8:Add, Button, x23 y325 w100 h30 g8guiclose, OK
- gui, 8:show, hide xcenter ycenter h381 w341, Data Reset
- speedfade("Data Reset", "out", 0)
- fade("Data Reset", "in", 0)
- return
- 8guiclose:
- 8guiescape:
- fade("Data Reset", "out", 0)
- gui, 8:destroy
- gui 1:-disabled
- envset, xa, 0
- ifequal, clearbnt1, 1
- {
- envadd, xa, 1
- }
- ifequal, clearbnt2, 2
- {
- envadd, xa, 1
- }
- ifequal, clearbnt3, 3
- {
- envadd, xa, 1
- }
- ifgreaterorequal, xa, 1
- {
- goto delselc
- }
- else
- {
- goto deldeselc
- }
- return
- restore:
- GuiControlGet, vcc2,8:, c2
- ifequal, vcc2, 1
- {
- ifequal, clearbnt1, 1
- {
- clearbnt1 = 0
- }
- else
- {
- clearbnt1 = 1
- }
- }
- return
- reststickyinp:
- GuiControlGet, vcc3,8:, c3
- ifequal, vcc3, 1
- {
- ifequal, clearbnt2, 2
- {
- clearbnt2 = 0
- }
- else
- {
- clearbnt2 = 2
- }
- }
- return
- msgprvdat:
- GuiControlGet, vcc4,8:, c4
- ifequal, vcc4, 1
- {
- ifequal, clearbnt3, 3
- {
- clearbnt3 = 0
- }
- else
- {
- clearbnt3 = 3
- }
- }
- return
- delselc:
- msgbox, delselc
- return
- deldeselc:
- msgbox, deldeselc
- return
- speedfade(window, dir, int)
- {
- detecthiddenwindows, on
- loop, 1
- {
- winset, trans, % (dir="out")?(255-(A_Index*255)):(dir="in")?(0+(A_Index*255)):"", %window%
- }
- detecthiddenwindows, off
- }
- fade(window, dir, int)
- {
- detecthiddenwindows, on
- ifwinnotexist, %window%
- return
- If (dir="in")
- winshow, %window%
- loop, 37
- {
- winset, trans, % (dir="out")?(255-(A_Index*7)):(dir="in")?(0+(A_Index*7)):"", %window%
- sleep, 1
- }
- detecthiddenwindows, off
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement