vanheartnet

Roblox Updater

Jun 25th, 2020 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 KB | None | 0 0
  1. ;@Ahk2Exe-SetCompanyName VANHEARTNET LTD. INC.
  2. ;@Ahk2Exe-SetCopyright All rights reserved © VANHEARTNET
  3. ;@Ahk2Exe-Set FileDescription, Roblox Updater
  4. ;@Ahk2Exe-Set FileVersion, 4.4.4.0
  5. ;@Ahk2Exe-SetInternalName Roblox Updater
  6. ;@Ahk2Exe-SetName Roblox Updater
  7. ;@Ahk2Exe-SetOrigFileName Roblox Portable Updater
  8. ;@Ahk2Exe-Set ProductName, Game Updater
  9. ;@Ahk2Exe-Set ProductVersion, 4.4.4.0
  10. ;@Ahk2Exe-Set Description, Roblox Updater
  11. ;@Ahk2Exe-Set Comments, Software Created by : VANHEARTNET
  12.  
  13.  
  14. #SingleInstance, Force
  15. #NoEnv
  16. #Persistent
  17. Menu,Tray,Nostandard
  18. SetWorkingDir %A_ScriptDir%
  19. SetBatchLines, 20ms
  20. DetectHiddenText, On
  21. SetTitleMatchMode, 2
  22. CoordMode,Pixel,screen
  23.  
  24.  
  25. VANHEARTNET=Roblox Portable by © VANHEARTNET.exe
  26.  
  27. IfwinExist, Games - Roblox - Google Chrome ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe
  28. {
  29. process,close,RobloxPlayerLauncher.exe
  30. WinActivate
  31. Send {LCtrl down} {w}
  32. sleep,1000
  33. Send {LCtrl up}
  34. }
  35. IfWinExist,Games - Roblox - Brave
  36. {
  37. process,close,RobloxPlayerLauncher.exe
  38. WinActivate
  39. Send {LCtrl down} {w}
  40. sleep,1000
  41. Send {LCtrl up}
  42. }
  43. IfExist, % VANHEARTNET
  44. {
  45. Run, % VANHEARTNET
  46. }
  47. else
  48. {
  49. MsgBox,16,Error, Some Files are missing or moved.
  50. ExitApp
  51. }
  52.  
  53. WinWait,Roblox Portable
  54. WinHide,Roblox Portable
  55. Loop
  56. {
  57. IfWinExist, Roblox Portable
  58. WinHide,Roblox Portable
  59. clear:
  60. sleep,1000
  61. IfWinExist, Games - Roblox - Google Chrome ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe
  62. {
  63. WinActivate,Games - Roblox - Google Chrome
  64. Send {LCtrl down} {w}
  65. sleep,1000
  66. Send {LCtrl up}
  67. sleep,1000
  68. IfWinExist,Games - Roblox - Google Chrome ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe
  69. Goto, clear
  70. traytip,Roblox,is Updated`t`t,,1
  71. sleep,5000
  72. gosub, Check_Updates
  73. FileDelete,%A_Temp%\Roblox Updater version.dat
  74. ;~ Run *Runas cmd.exe /c ping localhost -n 10 >NUL && unrar x -pVANHEARTNET /d "Roblox Updater.rar" /y
  75. ExitApp
  76. }
  77. clear1:
  78. sleep, 1000
  79. IfWinExist,Games - Roblox - Brave ahk_class Chrome_WidgetWin_1 ahk_exe brave.exe
  80. {
  81. gosub, clears
  82. Sleep,1000
  83. IfWinExist,Games - Roblox - Brave ahk_class Chrome_WidgetWin_1 ahk_exe brave.exe
  84. Goto, clear1
  85. traytip,Roblox,is Updated`t`t,,1
  86. sleep,5000
  87. gosub, Check_Updates
  88. FileDelete,%A_Temp%\Roblox Updater version.dat
  89. ;~ Run *Runas cmd.exe /c ping localhost -n 10 >NUL && unrar x -pVANHEARTNET /d "Roblox Updater.rar" /y
  90. ExitApp
  91. }
  92.  
  93. IfWinExist,Roblox ahk_class MAINDIALOG ahk_exe RobloxPlayerLauncher.exe,Starting Roblox ...
  94. {
  95. WinActivate,Roblox ahk_class MAINDIALOG ahk_exe RobloxPlayerLauncher.exe, Starting Roblox ...
  96. ControlGetPos,X1,Y1,,,Button2,Roblox ahk_class MAINDIALOG ahk_exe RobloxPlayerLauncher.exe, Starting Roblox ...
  97. X1:=X1+20
  98. Y1:=Y1+10
  99. ControlClick,x%X1% y%Y1%,Roblox ahk_class MAINDIALOG ahk_exe RobloxPlayerLauncher.exe, Starting Roblox ...,Left,1,,,
  100. While 1
  101. {
  102. process,exist,RobloxPlayerLauncher.exe
  103. if !Errorlevel
  104. {
  105. Run,%VANHEARTNET%
  106. break
  107. }
  108.  
  109. IfWinExist, Games - Roblox - Google Chrome ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe
  110. goto clear
  111. else IfWinExist,Games - Roblox - Brave ahk_class Chrome_WidgetWin_1 ahk_exe brave.exe
  112. Goto, clear1
  113. else
  114. Sleep, 2000
  115. }
  116. }
  117. else
  118. {
  119. sleep,2000
  120. }
  121.  
  122. }
  123. RETURN
  124.  
  125.  
  126. clears:
  127. WinActivate, ahk_class Chrome_WidgetWin_1 ahk_exe brave.exe
  128. Send {LCtrl down} {w}
  129. sleep,1000
  130. Send {LCtrl up}
  131. return
  132.  
  133. Esc::
  134. process,close,RobloxPlayerLauncher.exe
  135. Process,close,chrome.exe
  136. process,close,Brave.exe
  137. FileDelete,%A_Temp%\Roblox Updater version.dat
  138. ExitApp
  139.  
  140. Delete::
  141. process,close,RobloxPlayerLauncher.exe
  142. process,close,Brave.exe
  143. Process,close,chrome.exe
  144. End::
  145. ExitApp
  146.  
  147.  
  148. Check_Updates:
  149. ;~ =======================================CHECK VERSION=====================================================
  150. V=4.4.4.0
  151. MFlink=http://www.mediafire.com/file/uwiuj0025dfemlh/Roblox_Updater.rar/file
  152. pastebin=https://pastebin.com/iEfBtkr8
  153. ;~ ============================================================================================
  154. message=Roblox Updater
  155. message1=`n`nThank You`n`n-VANHEARTNET
  156. 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
  157. ;~ ============================================================================================
  158.  
  159. URLDownloadToFile,%pastebin%,%A_Temp%\%message% version.dat
  160. if errorlevel=0
  161. {
  162. fileread,version,%A_Temp%\%message% version.dat
  163. IfNotInString,version,%V%
  164. {
  165. Loop,read,%A_Temp%\%message% version.dat
  166. {
  167. str := A_LoopReadLine
  168. s:=StrSplit(str,"version=")
  169. Loop,parse,A_LoopReadLine,`n
  170. {
  171. IfNotInString,str,version=
  172. continue
  173. else
  174. {
  175. rar:=StrSplit(s.2,"</div>")
  176. url1:=rar.1
  177. V2:=url1
  178. break 2
  179. }
  180. }
  181. }
  182.  
  183. MsgBox, 36, %message%, A new version is Available!`n`nDo you want to download?`nversion : %V2%
  184. IfMsgBox,Yes
  185. Run,%MFlink%
  186. }
  187. }
  188.  
  189. ;~ ==================================================================================================================
  190.  
  191. return
Add Comment
Please, Sign In to add comment