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, Cyber Hunter Game Updater
- ;@Ahk2Exe-Set FileVersion, 2.8.1.0
- ;@Ahk2Exe-SetInternalName Cyber Hunter Updater
- ;@Ahk2Exe-SetName Game Updater
- ;@Ahk2Exe-SetOrigFileName Cyber Hunter Game Updater
- ;@Ahk2Exe-Set ProductName, Game Updater
- ;@Ahk2Exe-Set ProductVersion, 2.8.1.0
- ;@Ahk2Exe-Set Description, Cyber Hunter Game Updater
- ;@Ahk2Exe-Set Comments, Software Created by : VANHEARTNET
- #SingleInstance,Force
- #NoEnv
- #Persistent
- Menu,Tray,NoStandard
- SetWorkingDir %A_ScriptDir%
- SetTitleMatchMode,2
- CoordMode,Pixel,Client
- Process,close,client.exe
- Process,Exist,CCMini.exe
- IfExist, launcher.exe
- Run, launcher.exe
- else
- {
- MsgBox,16,Error, Some Files are missing or moved.
- ExitApp
- }
- WinWait,ahk_class Win32Window ahk_exe client.exe
- Loop
- {
- IfWinExist,ahk_class MPAY_LOGIN
- {
- WinActivate
- Process,close,client.exe
- Process,close,CCMini.exe
- gosub,Check_Updates
- FileDelete,%A_Temp%\Cyber Hunter Updater version.dat
- TrayTip,Cyber Hunter ,Updated... `t `t,,1
- sleep,5000
- ExitApp
- }
- else
- {
- WinActivate,ahk_class Win32Window
- sleep, 2000
- WinActivate,ahk_class Win32Window
- }
- }
- return
- Delete::
- Process,close,client.exe
- Process,close,CCMini.exe
- ExitApp
- End::
- ExitApp
- Check_Updates:
- ;~ =======================================CHECK VERSION=====================================================
- V=2.8.1.0
- MFlink=https://www.mediafire.com/file/uqxk26y7ngvur7u/Cyber+Hunter+Updater.rar/file
- pastebin=https://pastebin.com/9NmfHXAj
- ;~ ============================================================================================
- message=Cyber Hunter Updater
- message1=`n`nThank You`n`n-VANHEARTNET
- message2=Cyber Hunter 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