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, Rules Of Survival
- ;@Ahk2Exe-Set FileVersion, 3.5.5.0
- ;@Ahk2Exe-SetInternalName Rules Of Survival Updater
- ;@Ahk2Exe-SetName GPoints ROS Updater
- ;@Ahk2Exe-SetOrigFileName Rules Of Survival
- ;@Ahk2Exe-Set ProductName, ROS Updater
- ;@Ahk2Exe-Set ProductVersion, 3.5.5.0
- ;@Ahk2Exe-Set Description, Rules Of Survival
- ;@Ahk2Exe-Set Comments, Software Created by : VANHEARTNET
- #SingleInstance, Force
- #NoEnv
- #Persistent
- Menu,Tray, NoStandard
- DetectHiddenText, On
- SetTitleMatchMode, 2
- SetWorkingDir %A_ScriptDir%
- CoordMode, Pixel,Client
- CoordMode,Mouse,Client
- IfNotExist,%A_Temp%\3.0
- FileCreateDir,%A_Temp%\3.0
- FileSetAttrib,+H,%A_Temp%\3.0
- FileInstall,OKImage.png,%A_Temp%\3.0\0.png
- FileInstall,1.png,%A_Temp%\3.0\1.png
- FileInstall,2.png,%A_Temp%\3.0\2.png
- IfNotExist,vPNG
- FileCreateDir,vPNG
- Process,Exist,ros.exe
- {
- IF !Errorlevel=0
- Process,close,ros.exe
- }
- gosub,Check_Updates
- IfExist, ros.exe
- {
- Run, ros.exe
- }
- else
- {
- MsgBox,16,Error, Some Files are missing or moved.
- FileDelete,%A_Temp%\ROS Updater version.dat
- ExitApp
- }
- WinWait,ahk_class Win32Window0 ahk_exe ros.exe
- loop
- {
- IfWinExist,ahk_class MPAY_LOGIN
- {
- Process,close,ros.exe
- TrayTip,Rules of Survival,is Updated!`t `t `t,,1
- sleep,2000
- FileRemoveDir,%A_Temp%\3.0,1
- FileDelete,%A_Temp%\ROS Updater version.dat
- ExitApp
- }
- else
- Sleep,2000
- IfWinNotActive,ahk_class Win32Window0 ahk_exe ros.exe
- WinActivate,ahk_class Win32Window0 ahk_exe ros.exe
- WinGetPos,XW,YW,WW,HW,A
- Loop,%A_Temp%\3.0\*.png,1
- {
- P:=A_LoopFileName
- IfWinNotActive,ahk_class Win32Window0 ahk_exe ros.exe
- WinActivate,
- ImageSearch, FoundDownloadedX,FoundDownloadedY,0,0,%WW%,%HW%,*50 %A_Temp%\3.0\%P%
- if (ErrorLevel = 0)
- Reload
- }
- Loop,vPNG\*.png,1
- {
- P:=A_LoopFileName
- IfWinNotActive,ahk_class Win32Window0 ahk_exe ros.exe
- WinActivate,
- ImageSearch, FoundDownloadedX,FoundDownloadedY,0,0,%WW%,%HW%,*50 vPNG\%P%
- if (ErrorLevel = 0)
- Reload
- }
- IfWinExist, ahk_class Ghost ahk_exe dwm.exe
- {
- TrayTip,ROS, Game is not Responding. This might take a while.`t`t,5,2
- sleep,30000
- }
- }
- return
- Esc::
- Process,close,ros.exe
- FileRemoveDir,%A_Temp%\3.0,1
- ExitApp
- End::
- ExitApp
- Check_Updates:
- ;~ =======================================CHECK VERSION=====================================================
- V=3.5.5.0
- MFlink=http://www.mediafire.com/file/ozgrfeg7xv494cq/Ros_Updater.rar/file
- pastebin=https://pastebin.com/MimZwa4G
- ;~ ============================================================================================
- message=ROS Updater
- message1=`n`nThank You`n`n-VANHEARTNET
- message2=ROS 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%\3.0\%message% version.dat
- if errorlevel=0
- {
- fileread,version,%A_Temp%\3.0\%message% version.dat
- IfNotInString,version,%V%
- {
- Loop,read,%A_Temp%\3.0\%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,262180, %message%, A new version is Available!`n`nDo you want to download?`nversion : %V2%,10
- IfMsgBox,Yes
- Run,%MFlink%
- }
- }
- ;~ ==================================================================================================================
- return
Add Comment
Please, Sign In to add comment