Advertisement
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, Portable Valorant © VANHEARTNET
- ;@Ahk2Exe-Set FileVersion, 1.4.0.0
- ;@Ahk2Exe-SetInternalName Valorant Tool
- ;@Ahk2Exe-SetName Valorant
- ;@Ahk2Exe-SetOrigFileName Valorant Tool
- ;@Ahk2Exe-Set ProductName, Portable Valorant-NoBoot
- ;@Ahk2Exe-Set ProductVersion, 1.4.0.0
- ;@Ahk2Exe-Set Description, Valorant Tool
- ;@Ahk2Exe-Set Comments, Software Created by : VANHEARTNET
- ;@Ahk2Exe-Obey U_au, = "%A_IsUnicode%" ? 2 : 1 ; Script ANSI or Unicode?
- ;@Ahk2Exe-PostExec "BinMod.exe" "%A_WorkFileName%"
- ;@Ahk2Exe-Cont "%U_au%2.>AUTOHOTKEY SCRIPT<.01VANHEARTNET "
- ;@Ahk2Exe-SetMainIcon icon.ico
- ;@Ahk2Exe-AddResource Icon.ico, 160 ; Replaces 'H on blue'
- ;@Ahk2Exe-AddResource Icon.ico, 206 ; Replaces 'S on green'
- ;@Ahk2Exe-AddResource Icon.ico, 207 ; Replaces 'H on red'
- ;@Ahk2Exe-AddResource Icon.ico, 208 ; Replaces 'S on red'
- #SingleInstance,Ignore
- #Persistent
- #NoEnv
- Menu,tray, NoStandard
- Menu, Tray, Tip, PORTABLE VALORANT
- Menu, Tray, Add, Exit1
- SetWorkingDir, %A_ScriptDir%
- SetBatchLines, 20ms
- #MaxHotkeysPerInterval 99000000
- #HotkeyInterval 99000000
- #KeyHistory 0
- ListLines Off
- Process, Priority, , A
- SetKeyDelay, -1, -1
- SetMouseDelay, -1
- SetDefaultMouseSpeed, 0
- SetWinDelay, -1
- SetControlDelay, -1
- DetectHiddenWindows, On
- SetTitleMatchMode, 3
- SendMode Input
- if not A_IsAdmin
- {
- Run, *RunAs "%A_ScriptFullpath%"
- ExitApp
- }
- IfNotExist,%A_Temp%\reg
- FileCreateDir,%A_Temp%\reg
- else
- {
- FileRemoveDir,%A_Temp%\reg,1
- FileCreateDir,%A_Temp%\reg
- }
- FileSetAttrib,+H,%A_Temp%\reg
- FileInstall,logo.png,%A_Temp%\reg\logo.png,1
- sleep,1000
- IfExist,C:\Riot Games
- FileRemoveDir,C:\Riot Games,1
- IfExist,C:\Users\%A_UserName%\AppData\Local\Riot Games
- FileRemoveDir,C:\Users\%A_UserName%\AppData\Local\Riot Games,1
- IfExist,C:\Users\%A_UserName%\AppData\Local\VALORANT
- FileRemoveDir,C:\Users\%A_UserName%\AppData\Local\VALORANT,1
- IfExist,C:\ProgramData\Riot Games
- FileRemoveDir,C:\ProgramData\Riot Games,1
- Gosub,Check_Updates
- Run *RunAs cmd.exe /c mklink /j "C:\Riot Games" "`%CD`%\Portable Valorant\Riot Games" && mklink /j "C:\Users\%A_UserName%\AppData\Local\Riot Games" "`%CD`%\Portable Valorant\Appdata\Riot Games" && mklink /j "C:\ProgramData\Riot Games" "`%CD`%\Portable Valorant\Programdata\Riot Games",,Hide
- sleep 50
- FileCreateShortcut,C:\Riot Games\Riot Client\RiotClientServices.exe,%A_Temp%\reg\VALORANT.lnk ,C:/Riot Games/Riot Client, --launch-product=valorant --launch-patchline=live
- Process,Exist,vgc.exe
- {
- If(Errorlevel=0)
- {
- Run, *RunAs cmd.exe /c sc config vgc start= demand,,Hide
- Sleep 200
- Run, *RunAs cmd.exe /c net start vgc,,Hide
- }
- }
- Process,Exist,vgtray.exe
- {
- If(Errorlevel=0)
- {
- IfExist, C:\Program Files\Riot Vanguard\vgtray.exe
- Run, *RunAs cmd.exe /c "C:\Program Files\Riot Vanguard\vgtray.exe",,Hide
- else IfExist, Vanguard\Riot Vanguard\vgtray.exe
- Run, *RunAs cmd.exe /c "Vanguard\Riot Vanguard\vgtray.exe",,Hide
- }
- }
- Sleep 100
- Run *RunAs cmd.exe /c "%A_Temp%\reg\VALORANT.lnk",,Hide
- Gui,1:+Alwaysontop -Caption
- Gui,1:Color,222222
- Gui,1:Add,Picture,x1 y2 w600 h200,%A_Temp%\reg\logo.png
- Gui,1:+Lastfound
- winset,Transcolor,222222
- Gui,1:Show,w600 h200,Portable VALORANT
- Sleep, 1000
- Loop 5
- {
- SetRegView, 64
- RegDelete, HKLM , SOFTWARE\Microsoft\Windows\CurrentVersion\Run , Riot Vanguard
- RegDelete, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run , Riot Vanguard
- Sleep 10
- SetRegView, 32
- RegDelete, HKLM , SOFTWARE\Microsoft\Windows\CurrentVersion\Run , Riot Vanguard
- RegDelete, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run , Riot Vanguard
- Sleep 10
- SetRegView, Default
- RegDelete, HKLM , SOFTWARE\Microsoft\Windows\CurrentVersion\Run , Riot Vanguard
- RegDelete, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run , Riot Vanguard
- Sleep 1000
- }
- FileRemoveDir,%A_Temp%\reg,1
- ExitApp
- Esc::
- Exit1:
- FileRemoveDir,%A_Temp%\reg,1
- ExitApp
- Check_Updates:
- ;~ =======================================CHECK VERSION=====================================================
- V=1.4.0.0
- MFlink=https://www.mediafire.com/file/q6debu9d9mfa6wk/Portable+Valorant+-NoBoot.rar/file
- pastebin=https://pastebin.com/PSxVqM7B
- ;~ ============================================================================================
- message=Portable Valorant
- message1=`n`nThank You`n`n-VANHEARTNET
- message2=Portable Valorant by © VANHEARTNET`n`nLatest version is now available and ready to download`nYou will redirect to a download link.`n`nThank You`n`n-VANHEARTNET
- Ytt=https://www.youtube.com/watch?v=o1EtXFr7vkU
- URLDownloadToFile,%Ytt%,%A_Temp%\Portable Valorant version2.dat
- ;~ ============================================================================================
- URLDownloadToFile,%pastebin%,%A_Temp%\Portable Valorant version.dat
- if errorlevel=0
- {
- fileread,version,%A_Temp%\Portable Valorant version.dat
- IfNotInString,version,%V%
- {
- Loop,read,%A_Temp%\Portable Valorant 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
- }
- }
- }
- if(V2="")
- return
- MsgBox,262180, Portable Valorant, A new version is Available!`n`nDo you want to download?`t`t`nversion : %V2%,10
- IfMsgBox,Yes
- Run,%MFlink%
- }
- }
- ;~ ==================================================================================================================
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement