Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;@Ahk2Exe-SetCompanyName VANHEARTNET LTD. INC.
- ;@Ahk2Exe-SetCopyright All rights reserved © VANHEARTNET
- ;@Ahk2Exe-Set FileDescription, Youtube Automatic Views
- ;@Ahk2Exe-Set FileVersion, 2.0.0.0
- ;@Ahk2Exe-SetInternalName Youtube Unlimited Views
- ;@Ahk2Exe-SetName Youtube Unlimited Views
- ;@Ahk2Exe-SetOrigFileName Youtube Automatic Views
- ;@Ahk2Exe-Set ProductName, Youtube Unlimited Views
- ;@Ahk2Exe-Set ProductVersion, 2.0.0.0
- ;@Ahk2Exe-Set Description, Youtube Automatic Views
- ;@Ahk2Exe-Set Comments, Software Created by : VANHEARTNET
- #SingleInstance, Force
- #NoEnv
- #Persistent
- SetBatchLines, 100ms
- SetWorkingDir, %A_ScriptDir%
- SetTitleMatchMode,1
- Pause:=true
- BProcess:="chrome.exe"
- Browsername := "Chrome||Brave|Internet Explorer|FireFox|"
- Browser:=["chrome.exe", "brave.exe", "iexplore.exe", "firefox.exe"]
- Process,close,% BProcess
- FileInstall,BannerSamp.png,%A_temp%\BannerSamp.png
- FileInstall,Banner2.png,%A_temp%\Banner2.png
- FileInstall,Banner3.png,%A_temp%\Banner3.png
- FileInstall,YTSubs1.png,%A_temp%\YTSubs1.png
- IfNotExist,VANHEARTNET
- {
- FileCreateDir,VANHEARTNET
- FileSetAttrib,+RH,VANHEARTNET
- }
- IfNotExist,VANHEARTNET\Settings.ini
- {
- IniWrite,https://www.youtube.com/watch?v=Coodor-yxv4&t=234s,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Video
- IniWrite,Roblox Portable by VANHEARTNET,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Window
- IniWrite,10000,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Secs
- Iniwrite,1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RSingle
- Iniwrite,0,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RMultiple
- Iniwrite,0,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Tab
- }
- IfNotExist,VANHEARTNET\list.txt
- FileAppend,https://www.youtube.com/watch?v=Coodor-yxv4,VANHEARTNET\list.txt:VAN:$DATA
- Iniread,Video1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Video
- IniRead,Window1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Window
- IniRead,Secs,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Secs
- IniRead,RSingle,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RSingle
- IniRead,RMultiple,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RMultiple
- IniRead,Tab1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Tab
- FileRead,Links,VANHEARTNET\list.txt:VAN:$DATA
- if(RSingle="ERROR")
- Iniwrite,1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RSingle
- if (RMultiple="ERROR")
- Iniwrite,1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RMultiple
- if(Links="ERROR")
- FileAppend,https://www.youtube.com/watch?v=Coodor-yxv4,VANHEARTNET\list.txt:VAN:$DATA
- Sec:=(Secs//1000)
- if (Tab1="ERROR")
- {
- Iniwrite,0,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Tab
- Tab1:=0
- }
- Gui,1:Submit,Nohide
- BG:=[1 "333333", 2 "222222",3 "cWhite", 4 "100", 5 "BackgroundWhite"]
- ;~ Gui,1:+Alwaysontop
- Gui,1:Color,% BG.1,
- Gui,1:Add,Picture,x20 y10 BackgroundTrans, %A_temp%\BannerSamp.png
- Gui,1:Add,Groupbox,x10 y132 w610 h305,
- Gui,1:Add,Picture,x20 y145 w100 h90 BackgroundTrans, %A_temp%\Banner2.png
- Gui,1:Add,Picture,x200 y380 w200 h50 BackgroundTrans gSubs, %A_temp%\YTSubs1.png
- Gui,1:Font, s40 cWhite, Impact
- Gui,1:Add,Text, x140 y150 BackgroundTrans,AUTOMATIC VIEWS
- Gui,1:Font, s39 cRed, Impact
- Gui,1:Add,Text, x144 y149 BackgroundTrans,AUTOMATIC VIEWS
- Gui,1:Font,
- Gui,1:Font,cWhite
- Gui,1:Add,Text,x450 y410, Powered by :
- Gui,1:Font,
- Gui,1:Font,s10,Arial Black
- Gui,1:Add,Text,x210 y247 c00ffff, VIP
- Gui,1:Font,s12
- Gui,1:Add,Button,x440 y300 w100 h70 vButton1 gButton1,CHANGE
- Gui,1:Add,Button,x440 y300 w100 h70 vButton2 gButton2 Hidden,SAVE
- Gui,1:Font,
- Gui,1:Font,cRed
- Gui,1:Add,Text,x520 y410, VANHEARTNET
- Gui,1:Font,
- Gui,1:Add,Edit,x20 y300 w400 h25 vEdit1 Disabled,% Video1
- Gui,1:Add,Edit,x20 y350 w400 h25 vEdit2 Disabled,% Window1
- Gui,1:Add,Edit,x20 y400 w50 Center Number h25 vEdit3 Disabled,% Sec
- Gui,1:Add,Edit,x20 y300 Hidden w400 r5 vEdit4 Disabled,% Links
- Gui,1:Font, S10 cYellow
- Gui,1:Add,Text,x25 y275 vYTLink, Youtube Link :
- Gui,1:Add,Text,x25 y330 vYTTitle, Youtube Title :
- Gui,1:Add,Text,x25 y380, Check Every %Sec% Seconds :
- Gui,1:Font,
- Gui,1:Font,cWhite
- Gui,1:Add,Dropdownlist,x400 y245 w150 vDPL gDPL Altsubmit Control Choose1 ,% Browsername
- ;~ ####################### RADIO #############################
- if (RSingle=1)
- {
- Gui,1:Add,Radio,x20 y250 vSingle Checked gSingle,Single Video
- Gui,1:Add,Radio,x120 y250 vMultiple gMultiple,Multiple Video
- Gui,1:Add,Checkbox,x290 y250 vTab gTab Hidden,Multi-Tabs
- Multiple:=False
- }
- else if (RMultiple=1)
- {
- Gui,1:Add,Radio,x20 y250 vSingle gSingle,Single Video
- Gui,1:Add,Radio,x120 y250 vMultiple Checked gMultiple,Multiple Video
- Gui,1:Add,Checkbox,x290 y250 vTab gTab,Multi-Tabs
- Guicontrol,1:Hide,Edit1
- Guicontrol,1:Hide,Edit2
- Guicontrol,1:Hide,YTTitle
- Guicontrol,1:Show,Edit4
- Multiple:=True
- }
- Gui,1:Font,s10 Bold
- Gui,1:Add,Text,x410 y225 BackgroundTrans , Browser
- ;~ #######################################################################
- Gui,1:Show, w630 h450, Youtube Unlimited Views
- if(RSingle=1)
- SetTimer,YTube,% Secs
- else
- {
- if(Tab1=1)
- {
- SetTimer,CheckTab,% Secs
- GuiControl,1:,Tab,1
- }
- else
- {
- SetTimer,YTube2,% Secs
- }
- }
- return
- Tab:
- Gui,1:Submit,Nohide
- if(Tab=1)
- {
- Iniwrite,1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Tab
- SetTimer,YTube,Off
- SetTimer,YTube2,Off
- SetTimer,CheckTab,% Secs
- }
- else
- {
- SetTimer,CheckTab,Off
- SetTimer,YTube2,% Secs
- Iniwrite,0,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Tab
- }
- return
- CheckTab:
- Process,exist,% BProcess
- if !Errorlevel
- {
- ifExist,VANHEARTNET\VTitle.txt
- FileDelete,VANHEARTNET\VTitle.txt
- Loop,read,VANHEARTNET\list.txt:VAN:$DATA
- {
- Loop,parse,A_LoopReadLine,`n
- {
- RunWait,% A_LoopField
- sleep, % Secs
- WinGetTitle,VTitle,ahk_exe %BProcess%
- FileAppend,%VTitle%`n,VANHEARTNET\VTitle.txt
- }
- }
- }
- else
- {
- WinActivate,ahk_exe %BProcess%
- WinGetTitle,WinX,ahk_exe %BProcess%
- FileRead,JJ,VANHEARTNET\VTitle.txt
- IfInString,JJ,%WinX%
- {
- WinActivate,ahk_exe %BProcess%
- Send {LCtrl down} {LShift down} {Tab}
- sleep,1000
- Send {LCtrl up}
- Send {LShift up}
- }
- else
- {
- WinActivate,ahk_exe %BProcess%
- Send {LCtrl down} {w}
- sleep,1000
- Send {LCtrl up}
- return
- }
- Loop,read,VANHEARTNET\VTitle.txt
- {
- Loop,parse,A_LoopReadLine,`n
- {
- NL:=0
- NL2:=(NL+1)
- TTL:=A_LoopField
- Loop
- {
- Sleep, % Secs
- Process,exist,% BProcess
- if !ErrorLevel
- Break
- WinActivate,ahk_exe %BProcess%
- IfWinNotActive,ahk_exe %BProcess%
- WinActivate,ahk_exe %BProcess%
- Send {LCtrl down} {LShift down} {Tab}
- sleep,1000
- Send {LCtrl up}
- Send {LShift up}
- WinGetTitle,WinX1,ahk_exe %BProcess%
- IfNotInString,JJ,%WinX1%
- {
- WinActivate,ahk_exe %BProcess%
- Send {LCtrl down} {w}
- sleep,1000
- Send {LCtrl up}
- }
- if(TTL=WinX1)
- {
- break
- }
- else
- {
- Continue
- }
- }
- ;~ FileDelete,VANHEARTNET\VTitle2.txt
- ;~ Loop
- ;~ {
- ;~ WinActivate,ahk_exe %BProcess%
- ;~ Send {LCtrl down} {LShift down} {Tab}
- ;~ sleep,1000
- ;~ Send {LCtrl up}
- ;~ Send {LShift up}
- ;~ WinGetTitle,WinX2,ahk_exe %BProcess%
- ;~ FileAppend,%WinX2%,VANHEARTNET\VTitle2.txt
- ;~ if(WinX2!=WinX2)
- ;~ {
- ;~ continue
- ;~ }
- ;~ else
- ;~ {
- ;~ MsgBox, Match na!
- ;~ Break
- ;~ }
- ;~ }
- ;~ IfWinNotExist, % TTL
- ;~ {
- ;~ MsgBox, not Exist %TTL%
- ;~ WinActivate,ahk_exe %BProcess%
- ;~ Send {LCtrl down} {LShift down} {Tab}
- ;~ sleep,1000
- ;~ Send {LCtrl up}
- ;~ Send {LShift up}
- ;~ }
- ;~ else
- ;~ MsgBox, yes Exist to
- }
- }
- ;~ FileRead,JJ2,VANHEARTNET\VTitle2.txt
- ;~ Loop %NL2%
- ;~ {
- ;~ MsgBox, % NL2
- ;~ IfNotInString,JJ2,%TTL%
- ;~ MsgBox, % TTL
- ;~ else
- ;~ MsgBox, in str
- ;~ }
- }
- return
- ReadTitle:
- WinGetTitle,WIN,ahk_exe %BProcess%
- FileRead,JJ,VANHEARTNET\VTitle.txt
- IfInString,WIN,% JJ
- MsgBox, Yes
- else
- MsgBox, No
- return
- DPL:
- Gui,1:Submit,Nohide
- ;~ Gui,1:+Owndialogs
- ;~ MsgBox, % Browser[DPL]
- BProcess:=Browser[DPL]
- Process,close,% BProcess
- return
- Single:
- SetTimer,YTube,% Secs
- Iniwrite,0,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RMultiple
- Iniwrite,1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RSingle
- Iniwrite,0,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Tab
- SetTimer,YTube2,Off
- Guicontrol,1:Show,Edit1
- Guicontrol,1:Show,Edit2
- Guicontrol,1:Show,YTTitle
- Guicontrol,1:Hide,Edit4
- Guicontrol,1:Hide,Tab
- Multiple:=False
- return
- Multiple:
- Gui,1:Submit,Nohide
- SetTimer,YTube2,% Secs
- SetTimer,YTube,Off
- Iniwrite,0,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RSingle
- Iniwrite,1,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,RMultiple
- Guicontrol,1:Hide,Edit1
- Guicontrol,1:Hide,Edit2
- Guicontrol,1:Hide,YTTitle
- Guicontrol,1:Show,Edit4
- Guicontrol,1:Show,Tab
- Multiple:=True
- return
- YTube2:
- Loop,read,VANHEARTNET\list.txt:VAN:$DATA
- {
- loop,parse,A_LoopReadLine,`n
- {
- if(Pause=True)
- {
- RunWait % A_Loopfield
- sleep,10000
- WinGetTitle,Activewindow,ahk_exe %BProcess%
- ;~ Gui,1:+Owndialogs
- ;~ MsgBox, % Activewindow
- Loop
- {
- IfWinNotExist,% Activewindow
- {
- TrayTip, Youtube `t,Next Video...,2,1
- Process,close,% BProcess
- break
- }
- else
- sleep,5000
- }
- }
- }
- }
- return
- YTube:
- IfWinNotExist,%Window1% - YouTube - Google Chrome
- {
- Process,close,% BProcess
- Run, %Video1%
- }
- Else
- Sleep, 1000
- return
- Subs:
- Gui,1:Submit,Nohide
- Start:=!Start
- if Start
- {
- if(Multiple=1)
- {
- Gui,1:+Owndialogs
- MsgBox, 262208, Message, Paused!
- Pause:=False
- SetTimer,YTube2,off
- }
- else
- {
- Pause:=False
- SetTimer,YTube,off
- }
- run, https://www.youtube.com/channel/UCSCrcDEgpvxrxL-ZmRbkYKw/
- Run,https://www.facebook.com/messages/t/js.vanheartnet
- }
- else
- {
- if(Multiple=1)
- {
- Gui,1:+Owndialogs
- MsgBox, 262208, Message, Play!
- Pause:=True
- SetTimer,YTube2,On
- }
- else
- {
- Pause:=True
- SetTimer,YTube,On
- }
- run, https://www.youtube.com/channel/UCSCrcDEgpvxrxL-ZmRbkYKw/
- Run,https://www.facebook.com/messages/t/js.vanheartnet
- }
- return
- Button1:
- guicontrol,1:Enable,Edit1
- guicontrol,1:Enable,Edit2
- guicontrol,1:Enable,Edit3
- guicontrol,1:Enable,Edit4
- GuiControl,1:Hide,Button1
- GuiControl,1:Show,Button2
- return
- Button2:
- gui,1:Submit,Nohide
- if (Edit1="" or Edit2="" or Edit3="")
- {
- IniWrite,https://www.youtube.com/watch?v=Coodor-yxv4&t=234s,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Video
- IniWrite,Roblox Portable by VANHEARTNET,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Window
- IniWrite,10000,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Secs
- sleep,1000
- Reload
- return
- }
- FileDelete,VANHEARTNET\list.txt:VAN:$DATA
- FileAppend,%Edit4%,VANHEARTNET\list.txt:VAN:$DATA
- IniWrite,%Edit1%,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Video
- IniWrite,%Edit2%,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Window
- EditSec:=(Edit3*1000)
- IniWrite,%EditSec%,VANHEARTNET\Settings.ini:VAN:$DATA,Settings,Secs
- GuiControl,1:Disable,Edit1
- GuiControl,1:Disable,Edit2
- GuiControl,1:Disable,Edit3
- GuiControl,1:Disable,Edit4
- GuiControl,1:Hide,Button2
- GuiControl,1:Show,Button1
- Reload
- return
- Esc::
- GuiClose:
- Send {LCtrl up}
- Send {LShift up}
- FileDelete,VANHEARTNET\VTitle.txt
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment