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, BULL SF Game Updater
- ;@Ahk2Exe-Set FileVersion, 1.5.0.0
- ;@Ahk2Exe-SetInternalName BULLSF Updater
- ;@Ahk2Exe-SetName BULL SF Game Updater
- ;@Ahk2Exe-SetOrigFileName BULL SF Game Updater
- ;@Ahk2Exe-Set ProductName, Game Updater
- ;@Ahk2Exe-Set ProductVersion, 1.5.0.0
- ;@Ahk2Exe-Set Description, BULL SF Updater
- ;@Ahk2Exe-Set Comments, Software Created by : VANHEARTNET
- #SingleInstance, Force
- #NoEnv
- #Persistent
- Menu,Tray,NoStandard
- SetWorkingDir %A_ScriptDir%
- CoordMode,Pixel,Client
- CoordMode,Mouse,Client
- ;###############################VANHEARTNET########################################
- IfNotExist,%A_Temp%\3.0
- FileCreateDir,%A_Temp%\3.0
- FileSetAttrib,+H,%A_Temp%\3.0
- FileInstall,Updated.png,%A_Temp%\3.0\Updated.png
- IfNotExist,BullGamez Soldier Front
- {
- MsgBox,16, Error, Some Files are missing. `n `n Please move "SFBULL Updater.exe" `n outside the "BullGamez Soldier Front" Folder
- ExitApp
- }
- else
- {
- IfNotExist,BullGamez Soldier Front\BullSF Launcher.exe
- {
- MsgBox, 262160, Error, Can't Find "BullSF Launcher.exe".
- ExitApp
- }
- Loop,BullGamez Soldier Front\BullSF Launcher.exe,,1
- {
- Pathy := A_LoopFileLongPath
- StringReplace,TT,Pathy,\BullSF Launcher.exe,,ALl
- FileCreateShortcut,%Pathy%,%A_Temp%\3.0\BullSF Launcher.lnk,%TT%,
- }
- }
- IfNotExist,Acc.ini
- {
- Iniwrite,USERNAME,Acc.ini:VAN:$data,Login,USERNAME
- IniWrite,PASSWORD,Acc.ini:VAN:$data,Login,PASSWORD
- FileSetAttrib,+H,Acc.ini
- }
- iniread,user,Acc.ini:VAN:$data,Login,USERNAME
- IniRead,pass,Acc.ini:VAN:$data,Login,PASSWORD
- if (user="") or (user="ERROR")
- user:="USERNAME"
- if (pass="") or (pass="ERROR")
- pass:="PASSWORD"
- ;~ ######################## Gui##################################
- Gui, 1:Color,222222,White
- Gui,1:+AlwaysOntop -Caption
- Gui,1:Font,bold cred
- Gui,Add,Edit,limit16 x20 w160 h30 r1 center vUser_Name,%user%
- if (pass="PASSWORD")
- Gui,Add,Edit,limit16 x20 w160 h30 r1 center vPassword gPassword,%pass%
- else
- Gui,Add,Edit,limit16 x20 w160 h30 r1 password center vPassword gPassword,%pass%
- Gui,1:Font,
- Gui,1:Font,Bold
- Gui,Add,Button,x20 y+10 w160 gENTER, ENTER
- if(user="USERNAME") or (pass="PASSWORD")
- Gui,1:Show,w200 h90, Login Acc
- ;~ ################################################################
- ;~ ;Kill running process========================================================================
- Process,exist,BullSF Launcher.exe
- {
- if !errorlevel=0
- {
- Process,close,BullSF Launcher.exe
- Run,%A_Temp%\3.0\BullSF Launcher.lnk
- }
- else
- Run,%A_Temp%\3.0\BullSF Launcher.lnk
- }
- WinWait,BullSF Launcher
- IfWinExist,BullSF Launcher
- {
- ;~ -------------------------------------------------------------------
- WinGetPos,X1,Y1,W1,H1,BullSF Launcher
- Under := A_ScreenWidth+H1
- WinMove,BullSF Launcher,,%X1%,%Under%+100,
- TrayTip,BULLSF, Analyzing please wait...`t `t,5,2
- ;~ ---------------------------------------------------------------------
- if(user!="USERNAME") and (user!="") and (pass!="PASSWORD") and (pass!="")
- {
- ControlClick,x449 y578,BullSF Launcher,,Left,2
- loop 20
- Send,{Backspace}
- sleep,2000
- Clipboard = %user%
- Send, ^v
- Sleep, 2000
- Send, {TAB}
- ControlClick,x430 y623,BullSF Launcher,,Left,2
- Clipboard = %pass%
- send, ^v
- sleep,2000
- Clipboard =
- WinActivate,BullSF Launcher
- Send, {enter}
- sleep, 1000
- Gosub, Back
- Loop
- {
- IfWinExist,Login Acc
- break
- IfWinExist,Error
- {
- Loop
- {
- IfWinNotExist,Error
- {
- WinHide,BullSF Launcher
- break
- }
- }
- Goto,Show
- break
- }
- WinActivate,BullSF Launcher
- IfWinExist,Info
- {
- WinActivate
- Send, {enter}
- send, {Space}
- }
- IfWinNotActive,BullSF Launcher
- WinActivate
- ImageSearch,UX,UY,0,0,%W1%,%H1%,%A_Temp%\3.0\Updated.png
- if errorlevel=0
- {
- Goto, Exit
- }
- IfWinExist,REMINDER
- {
- WinActivate
- Send, {Tab}
- Send, {enter}
- send, {Space}
- }
- else
- sleep, 2000
- }
- }
- else
- {
- Gui,1:+Owndialogs
- Winhide,BullSF Launcher
- MsgBox, 64, Message, You have 1 minute to Input your USERNAME and PASSWORD...
- sleep,30000
- gosub, Check_Updates
- ExitApp
- }
- }
- return
- Back:
- WinMove,BullSF Launcher,,X1,Y1
- return
- Password:
- Gui,1:Submit,Nohide
- if (Password="PASSWORD")
- GuiControl,-password,Password
- return
- ENTER:
- Gui,1:Submit,NOhide
- IniWrite,%User_Name%,Acc.ini:VAN:$data,Login,USERNAME
- IniWrite,%Password%,Acc.ini:VAN:$data,Login,PASSWORD
- reload
- return
- Show:
- Delete::
- Gui,1:Show,w200 h90,Login Acc
- return
- Exit:
- Process,close,BullSF Launcher.exe
- gosub, Check_Updates
- FileRemoveDir,%A_Temp%\3.0,1
- TrayTip,BULL SF, Updated! `t `t,5,1
- Sleep, 5000
- ExitApp
- return
- Esc::
- Process,close,BullSF Launcher.exe
- FileRemoveDir,%A_Temp%\3.0,1
- ExitApp
- return
- End::
- ExitApp
- Check_Updates:
- ;~ =======================================CHECK VERSION=====================================================
- V=1.5.0.0
- MFlink=http://www.mediafire.com/file/prjzffdlqc0uhdv/BullSF_Updater.rar/file
- pastebin=https://pastebin.com/HybTK1uV
- ;~ ============================================================================================
- message=BULLSF Updater
- message1=`n`nThank You`n`n-VANHEARTNET
- message2=BULLSF 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, 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