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, Roblox Updater
- ;@Ahk2Exe-Set FileVersion, 4.4.4.0
- ;@Ahk2Exe-SetInternalName Roblox Updater
- ;@Ahk2Exe-SetName Roblox Updater
- ;@Ahk2Exe-SetOrigFileName Roblox Portable Updater
- ;@Ahk2Exe-Set ProductName, Game Updater
- ;@Ahk2Exe-Set ProductVersion, 4.4.4.0
- ;@Ahk2Exe-Set Description, Roblox Updater
- ;@Ahk2Exe-Set Comments, Software Created by : VANHEARTNET
- #SingleInstance, Force
- #NoEnv
- #Persistent
- Menu,Tray,Nostandard
- SetWorkingDir %A_ScriptDir%
- SetBatchLines, 20ms
- DetectHiddenText, On
- SetTitleMatchMode, 2
- CoordMode,Pixel,screen
- VANHEARTNET=Roblox Portable by © VANHEARTNET.exe
- IfwinExist, Games - Roblox - Google Chrome ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe
- {
- process,close,RobloxPlayerLauncher.exe
- WinActivate
- Send {LCtrl down} {w}
- sleep,1000
- Send {LCtrl up}
- }
- IfWinExist,Games - Roblox - Brave
- {
- process,close,RobloxPlayerLauncher.exe
- WinActivate
- Send {LCtrl down} {w}
- sleep,1000
- Send {LCtrl up}
- }
- IfExist, % VANHEARTNET
- {
- Run, % VANHEARTNET
- }
- else
- {
- MsgBox,16,Error, Some Files are missing or moved.
- ExitApp
- }
- WinWait,Roblox Portable
- WinHide,Roblox Portable
- Loop
- {
- IfWinExist, Roblox Portable
- WinHide,Roblox Portable
- clear:
- sleep,1000
- IfWinExist, Games - Roblox - Google Chrome ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe
- {
- WinActivate,Games - Roblox - Google Chrome
- Send {LCtrl down} {w}
- sleep,1000
- Send {LCtrl up}
- sleep,1000
- IfWinExist,Games - Roblox - Google Chrome ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe
- Goto, clear
- traytip,Roblox,is Updated`t`t,,1
- sleep,5000
- gosub, Check_Updates
- FileDelete,%A_Temp%\Roblox Updater version.dat
- ;~ Run *Runas cmd.exe /c ping localhost -n 10 >NUL && unrar x -pVANHEARTNET /d "Roblox Updater.rar" /y
- ExitApp
- }
- clear1:
- sleep, 1000
- IfWinExist,Games - Roblox - Brave ahk_class Chrome_WidgetWin_1 ahk_exe brave.exe
- {
- gosub, clears
- Sleep,1000
- IfWinExist,Games - Roblox - Brave ahk_class Chrome_WidgetWin_1 ahk_exe brave.exe
- Goto, clear1
- traytip,Roblox,is Updated`t`t,,1
- sleep,5000
- gosub, Check_Updates
- FileDelete,%A_Temp%\Roblox Updater version.dat
- ;~ Run *Runas cmd.exe /c ping localhost -n 10 >NUL && unrar x -pVANHEARTNET /d "Roblox Updater.rar" /y
- ExitApp
- }
- IfWinExist,Roblox ahk_class MAINDIALOG ahk_exe RobloxPlayerLauncher.exe,Starting Roblox ...
- {
- WinActivate,Roblox ahk_class MAINDIALOG ahk_exe RobloxPlayerLauncher.exe, Starting Roblox ...
- ControlGetPos,X1,Y1,,,Button2,Roblox ahk_class MAINDIALOG ahk_exe RobloxPlayerLauncher.exe, Starting Roblox ...
- X1:=X1+20
- Y1:=Y1+10
- ControlClick,x%X1% y%Y1%,Roblox ahk_class MAINDIALOG ahk_exe RobloxPlayerLauncher.exe, Starting Roblox ...,Left,1,,,
- While 1
- {
- process,exist,RobloxPlayerLauncher.exe
- if !Errorlevel
- {
- Run,%VANHEARTNET%
- break
- }
- IfWinExist, Games - Roblox - Google Chrome ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe
- goto clear
- else IfWinExist,Games - Roblox - Brave ahk_class Chrome_WidgetWin_1 ahk_exe brave.exe
- Goto, clear1
- else
- Sleep, 2000
- }
- }
- else
- {
- sleep,2000
- }
- }
- RETURN
- clears:
- WinActivate, ahk_class Chrome_WidgetWin_1 ahk_exe brave.exe
- Send {LCtrl down} {w}
- sleep,1000
- Send {LCtrl up}
- return
- Esc::
- process,close,RobloxPlayerLauncher.exe
- Process,close,chrome.exe
- process,close,Brave.exe
- FileDelete,%A_Temp%\Roblox Updater version.dat
- ExitApp
- Delete::
- process,close,RobloxPlayerLauncher.exe
- process,close,Brave.exe
- Process,close,chrome.exe
- End::
- ExitApp
- Check_Updates:
- ;~ =======================================CHECK VERSION=====================================================
- V=4.4.4.0
- MFlink=http://www.mediafire.com/file/uwiuj0025dfemlh/Roblox_Updater.rar/file
- pastebin=https://pastebin.com/iEfBtkr8
- ;~ ============================================================================================
- message=Roblox Updater
- message1=`n`nThank You`n`n-VANHEARTNET
- message2=Roblox Updater`n`nLatest version is now available and ready to download`nYou will redirect to a download link.`n`nThank You`n`n-VANHEARTNET
- ;~ ============================================================================================
- URLDownloadToFile,%pastebin%,%A_Temp%\%message% version.dat
- if errorlevel=0
- {
- fileread,version,%A_Temp%\%message% version.dat
- IfNotInString,version,%V%
- {
- Loop,read,%A_Temp%\%message% version.dat
- {
- str := A_LoopReadLine
- s:=StrSplit(str,"version=")
- Loop,parse,A_LoopReadLine,`n
- {
- IfNotInString,str,version=
- continue
- else
- {
- rar:=StrSplit(s.2,"</div>")
- url1:=rar.1
- V2:=url1
- break 2
- }
- }
- }
- MsgBox, 36, %message%, A new version is Available!`n`nDo you want to download?`nversion : %V2%
- IfMsgBox,Yes
- Run,%MFlink%
- }
- }
- ;~ ==================================================================================================================
- return
Add Comment
Please, Sign In to add comment