![]() |
|
[Trove] Multi Client Launcher with Auto Login Saver. Both Steam and Sta... (Download) - Printable Version +- Sick Gaming (https://sickgaming.net) +-- Forum: Console, Mobile, and PC Gaming (https://sickgaming.net/forum-119.html) +--- Forum: PC Discussion (https://sickgaming.net/forum-13.html) +--- Thread: [Trove] Multi Client Launcher with Auto Login Saver. Both Steam and Sta... (Download) (/thread-114824.html) |
[Trove] Multi Client Launcher with Auto Login Saver. Both Steam and Sta... (Download) - xSicKxBot - 10-06-2015 Multi Client Launcher with Auto Login Saver. Both Steam and Standalone. Game: Trove Details Ok, First off I don't want to hear about a security risk. There is risk in everything. But what mine does over others is it uses Glyph stored login name and password hash file. Meaning it is the best way to be secure and as it uses glyph it self for that. Also as of 1.3 of taejim program it uses this feature for login saving. I wrote part of it for him but went it would be just as good as a standalone with out the fishingbot part. Reason behind making this was I was talking to taejim about his program and I remember it used to save the username and password and would automate typing it. To me this is to big of a risk. So last night I dug around Glyph and found out where the Login name and password hashes are store. So I went hmm I could use this. So I went and made way of saving that data sent it over to taejim and he loved the idea. So today when I woke up I decided to finish this for my own use. But I began to think others might like this. I was not a fan of the flashie one that iKasuFTW made. So I wrote a simple GUI. One where you wont have to type in usernames and all that. Took me little over 4-6 hrs tinkering with it to get it to work the way I would use it. And here you go. Remember to always +rep if you like GUI Preview: How to use: First hit config button a the bottom. Make sure the paths are set correctly. If you are using steam check the checkbox. It will change over to the steam default locations. If you are not using the default locations for steam or glyph hit Browse button and navigate your way to the GlyphClient.exe. As for the path for the data folder. Steam stores that in the same folder as the GlyphClient.exe. The standalone stores it in %localappdata%\Glyph. Once you are sure the paths are correct hit save and exit config button. Now, Hit the button that says Launch Glyph with no login. This will open Glyph with no login. Login with your Username/Password. DO NOT HIT PLAY JUST YET. Now go back to the program and hit Save/Add Current Login. This will then add it to the list. Now to add another account just hit the logout button at the top of the glyph client. Login again and hit the Save/Add Current Login button on the program. If for what ever reason you wish to delete a login. Just select the login on the list and hit the button Delete Selected Account. This will delete all data for this account that is stored. Now once you have your usernames set and saved. To launch the accounts just select the account on this list and hit the button Launch Selected Account. You can also double click on the list to launch it. Once launched just hit play. Go back to the program and Launch another. I think that is all I can think of as of now. So if you like please +rep me. Also if you have any questions or comments please leave them below or come to my ts3 server which is posted in my sig. Autohotkey Source ;Version 1.0 ;First Release ;Autologin sytem using trove saved login hashes Version 1.0 Code:Copy ;Version 1.0 ;Autologin sytem using trove saved login hashes #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ;#Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. EnvGet, LOCALAPPDATA, LOCALAPPDATA Global GlyphDataPath ;:= LOCALAPPDATA "\Glyph" Global GlyphClientPath ;:= "C:\Program Files (x86)\Glyph\" Global IniFile := "AutoLoginLauncher.ini" ;Save Filename ;Declaring gloabl Var you should not need to change anything below. Global ConfigWindowToggle := False Global FoundDat Global SteamCheckBox := "Button1" ;Don't change this it is used for GUI Checkboss. Global GUIMainCaption := "Auto Login Launcher by Nipper" Global GUIConfigCaption := "Auto Login Launcher Config" ;Checking for ini. If not found creates one with default settings. IfNotExist, %A_ScriptDir%/%IniFile% { EnvGet, LOCALAPPDATA, LOCALAPPDATA GlyphDataPath := LOCALAPPDATA "\Glyph\" GlyphClientPath := "C:\Program Files (x86)\Glyph\" IniWrite, 0, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniWrite, %GlyphDataPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniWrite, %GlyphClientPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath } ;Reading ini for settings. IniRead, SteamCheckBox, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniRead, GlyphDataPath, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniRead, GlyphClientPath, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath ;Checking for saved users. GuiControl, Main:, LoginNames,| Global FolderList := loop, %A_ScriptDir%\SavedLogins\*, 2 FolderList .= A_LoopFileName . "|" Gui, Main: -MaximizeBox -MinimizeBox Gui, Main:Add, Text, x12 y9 w150 h20 , Saved Account Logins: Gui, Main:Add, ListBox, x12 y29 w180 h150 vLoginNames gLoginNamesList, %FolderList% Gui, Main:Add, Button, x12 y179 w180 h20 gRunGlyphNoLogin, Launch Glyph with no login Gui, Main:Add, Button, x12 y209 w180 h20 gLaunchSelected, Launch Selected Account Gui, Main:Add, Button, x12 y229 w180 h20 gSaveAddCurrnetLogin, Save/Add Current Login Gui, Main:Add, Button, x12 y249 w180 h20 gDeleteSelectedAccount, Delete Selected Account Gui, Main:Add, Button, x12 y279 w80 h20 gConfigToggle, Config Gui, Main:Add, Button, x102 y279 w90 h20 gMainGuiClose, Exit Gui, Config:-MaximizeBox -MinimizeBox -Disabled Gui, Config:Add, Text, x12 y9 w150 h20 , Are you using Steam Version? Gui, Config:Add, CheckBox, x162 y9 w20 h20 vSteamCheck gSteamSettings Gui, Config:Add, Text, x12 y39 w260 h20 , Path to GlyphClient.exe Gui, Config:Add, Edit, x12 y59 w260 h20 vGUIGlyphClientPath, %GlyphClientPath% Gui, Config:Add, Button, x272 y59 w60 h20 gSelectFolderClient, Browse Gui, Config:Add, Text, x12 y89 w260 h20 , Path to Glyph Configs Gui, Config:Add, Edit, x12 y109 w260 h20 vGUIGlyphDataPath, %GlyphDataPath% Gui, Config:Add, Button, x272 y109 w60 h20 gSelectFolderData, Browse Gui, Config:Add, Button, x12 y139 w320 h30 gSaveExitConfig, Save and Exit Config Gui, Config:Show, Hide AutoSize Center h182 w346, %GUIConfigCaption% if(SteamCheckBox = 1) { Guicontrol, Config:, SteamCheck, 1 SteamCheck = 1 } else { SteamCheck = 0 } Gui, Main:Show, AutoSize Center h314 w205, %GUIMainCaption% Return SaveExitConfig: Gui, Config:Submit, Hide IniWrite, %SteamCheck%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniWrite, %GUIGlyphDataPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniWrite, %GUIGlyphClientPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath return SelectFolderClient: FileSelectFolder, Folder, , 3 if Folder = MsgBox, You didn't select a folder. else GuiControl,Config:,GUIGlyphClientPath,%Folder%\ return SelectFolderData: FileSelectFolder, Folder, , 3 if Folder = MsgBox, You didn't select a folder. else GuiControl,Config:,GUIGlyphDataPath,%Folder%\ return SteamSettings: ;Default steam settings. GuiControlGet, SteamCheck if(SteamCheck = 1) { ;DefaultSteam Settings GlyphDataPath := "C:\Program Files (x86)\Steam\steamapps\common\Trove\" GlyphClientPath := "C:\Program Files (x86)\Steam\steamapps\common\Trove\" GuiControl,Config:,GUIGlyphClientPath,%GlyphClientPath% GuiControl,Config:,GUIGlyphDataPath,%GlyphDataPath% } Else { ;Default Glyph Settings. EnvGet, LOCALAPPDATA, LOCALAPPDATA GlyphDataPath := LOCALAPPDATA "\Glyph\" GlyphClientPath := "C:\Program Files (x86)\Glyph\" GuiControl,Config:,GUIGlyphClientPath,%GlyphClientPath% GuiControl,Config:,GUIGlyphDataPath,%GlyphDataPath% } Return RunGlyphNoLogin: IniDelete, %GlyphDataPath%GlyphClient.cfg, Glyph, Login FoundDat = 0 Loop, Files, %GlyphDataPath%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Deleting and then remake the Cache dir. This is to prevent saving of older or other username hashes. FileRemoveDir, %GlyphDataPath%Cache, 1 FileCreateDir, %GlyphDataPath%Cache } Run, %GlyphClientPath%\GlyphClient.exe return LoginNamesList: if A_GuiControlEvent <> DoubleClick return LaunchSelected: ;Sets Var for current selected to LoginNames Var. Gui, Main:Submit, Nohide ;Sets saved auto login data. SetAutoLoginData(GlyphDataPath, LoginNames) ;Runs Glyph Run, %GlyphClientPath%\GlyphClient.exe Return SaveAddCurrnetLogin: ;Saves current logged in username/hash data. SaveLoginData(GlyphDataPath) ;Reloading list UsernameListReload() Return DeleteSelectedAccount: ;Sets Var for current selected to LoginNames Var. Gui, Main:Submit, Nohide ;Notify MsgBox, Deleting all info for %LoginNames% ;Deletes all settings for that user. FileRemoveDir, %A_ScriptDir%/SavedLogins/%LoginNames%, 1 ;Reloading list UsernameListReload() Return ConfigGuiClose: ConfigToggle: if !ConfigWindowToggle { Gui, Config:Show } else { Gui, Config:Hide } ConfigWindowToggle := !ConfigWindowToggle Return MainGuiClose: ;Reload Exitapp Return UsernameListReload() { GuiControl, Main:, LoginNames,| FolderList := loop, %A_ScriptDir%\SavedLogins\*, 2 FolderList .= A_LoopFileName . "|" GuiControl, Main:, LoginNames, %FolderList% Return } ;Function to save currnet saved current logged in user. SaveLoginData(GlyphFolder) { ;Reading Login name IniRead, LoginName, %GlyphFolder%GlyphClient.cfg, Glyph, Login ;Creating Saved LoginName Folder IfNotExist, %A_ScriptDir%/SavedLogins FileCreateDir, %A_ScriptDir%/SavedLogins ;Creating LoginName Folder IfNotExist, %A_ScriptDir%/SavedLogins/%LoginName% FileCreateDir, %A_ScriptDir%/SavedLogins/%LoginName% ;Warning user if no .dat is not in the folder. And if found copying for later use. FoundDat = 0 Loop, Files, %GlyphFolder%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Copying Current .dat files over to new folder by current login name. This will overwrite exsiting files. FileCopy, %GlyphFolder%Cache\*.dat, %A_ScriptDir%/SavedLogins/%LoginName%, 1 Msgbox Login hash for %LoginName% saved. If the name is on the list already it will overwrite older hashes. } else { Msgbox Unable to find login hash for %LoginName%. } return } ;Function To load Set usernames autologin data. SetAutoLoginData(GlyphFolder,LoginName) { ;Checking to see if Glyph is running. If window found it will do nothing. Process, Exist, GlyphClient.exe if (ErrorLevel != 0) { Process, Close, GlyphClient.exe Process, WaitClose, GlyphClient.exe } LoginToBeUsed := LoginName ;Writing Login name to config file. IniWrite, %LoginToBeUsed%, %GlyphFolder%GlyphClient.cfg, Glyph, Login ;Deleting and then remake the Cache dir. This is to prevent saving of older or other username hashes. FoundDat = 0 Loop, Files, %GlyphFolder%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Deleting and then remaking the Cache dir. This is to prevent saving of older hashes. FileRemoveDir, %GlyphFolder%Cache, 1 FileCreateDir, %GlyphFolder%Cache } ;Checking for .dat file if found copying over. FoundDat = 0 Loop, Files, %A_ScriptDir%\SavedLogins\%LoginToBeUsed%\*.dat FoundDat = 1 If (FoundDat = 1) { ;Copying Current .dat files over to new folder by current login name. This will overwrite exsiting files. FileCopy, %A_ScriptDir%/SavedLogins/%LoginToBeUsed%\*.dat, %GlyphFolder%Cache, 1 ;Msgbox Login hash for %LoginToBeUsed% set. } else { Msgbox Unable to find login hash for %LoginToBeUsed%. Please login again and hit save again. } ;Lauching Glyph ;Run, %GlyphClientPath%\GlyphClient.exe return } ;Version 1.0.1 ;Fixing a bug that if you hit delete selected user with out having one selected it would delete them all. ;Fixed when you hit launch acocunt when no account selected. Same error as a above. ;Edited/Fixed the way accounts are saving to give warning to user if the .dat file is not found or unable to get this the hash. Version 1.0.1 Code:Copy ;Version 1.0 ;Autologin sytem using trove saved login hashes ;Version 1.0.1 ;Fixing a bug that if you hit delete selected user with out having one selected it would delete them all. ;Fixed when you hit launch acocunt when no account selected. Same error as a above. ;Edited/Fixed the way accounts are saving to give warning to user if the .dat file is not found or unable to get this the hash. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ;#Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. EnvGet, LOCALAPPDATA, LOCALAPPDATA Global GlyphDataPath ;:= LOCALAPPDATA "\Glyph" Global GlyphClientPath ;:= "C:\Program Files (x86)\Glyph\" Global IniFile := "AutoLoginLauncher.ini" ;Save Filename ;Declaring gloabl Var you should not need to change anything below. Global ConfigWindowToggle := False Global FoundDat Global SteamCheckBox := "Button1" ;Don't change this it is used for GUI Checkboss. Global GUIMainCaption := "Auto Login Launcher by Nipper" Global GUIConfigCaption := "Auto Login Launcher Config" ;Checking for ini. If not found creates one with default settings. IfNotExist, %A_ScriptDir%/%IniFile% { EnvGet, LOCALAPPDATA, LOCALAPPDATA GlyphDataPath := LOCALAPPDATA "\Glyph\" GlyphClientPath := "C:\Program Files (x86)\Glyph\" IniWrite, 0, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniWrite, %GlyphDataPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniWrite, %GlyphClientPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath } ;Reading ini for settings. IniRead, SteamCheckBox, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniRead, GlyphDataPath, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniRead, GlyphClientPath, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath ;Checking for saved users. GuiControl, Main:, LoginNames,| Global FolderList := loop, %A_ScriptDir%\SavedLogins\*, 2 FolderList .= A_LoopFileName . "|" Gui, Main: -MaximizeBox -MinimizeBox Gui, Main:Add, Text, x12 y9 w150 h20 , Saved Account Logins: Gui, Main:Add, ListBox, x12 y29 w180 h150 vLoginNames gLoginNamesList, %FolderList% Gui, Main:Add, Button, x12 y179 w180 h20 gRunGlyphNoLogin, Launch Glyph with no login Gui, Main:Add, Button, x12 y209 w180 h20 gLaunchSelected, Launch Selected Account Gui, Main:Add, Button, x12 y229 w180 h20 gSaveAddCurrnetLogin, Save/Add Current Login Gui, Main:Add, Button, x12 y249 w180 h20 gDeleteSelectedAccount, Delete Selected Account Gui, Main:Add, Button, x12 y279 w80 h20 gConfigToggle, Config Gui, Main:Add, Button, x102 y279 w90 h20 gMainGuiClose, Exit Gui, Config:-MaximizeBox -MinimizeBox -Disabled Gui, Config:Add, Text, x12 y9 w150 h20 , Are you using Steam Version? Gui, Config:Add, CheckBox, x162 y9 w20 h20 vSteamCheck gSteamSettings Gui, Config:Add, Text, x12 y39 w260 h20 , Path to GlyphClient.exe Gui, Config:Add, Edit, x12 y59 w260 h20 vGUIGlyphClientPath, %GlyphClientPath% Gui, Config:Add, Button, x272 y59 w60 h20 gSelectFolderClient, Browse Gui, Config:Add, Text, x12 y89 w260 h20 , Path to Glyph Configs Gui, Config:Add, Edit, x12 y109 w260 h20 vGUIGlyphDataPath, %GlyphDataPath% Gui, Config:Add, Button, x272 y109 w60 h20 gSelectFolderData, Browse Gui, Config:Add, Button, x12 y139 w320 h30 gSaveExitConfig, Save and Exit Config Gui, Config:Show, Hide AutoSize Center h182 w346, %GUIConfigCaption% if(SteamCheckBox = 1) { Guicontrol, Config:, SteamCheck, 1 SteamCheck = 1 } else { SteamCheck = 0 } Gui, Main:Show, AutoSize Center h314 w205, %GUIMainCaption% Return SaveExitConfig: Gui, Config:Submit, Hide IniWrite, %SteamCheck%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniWrite, %GUIGlyphDataPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniWrite, %GUIGlyphClientPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath return SelectFolderClient: FileSelectFolder, Folder, , 3 if Folder = MsgBox, You didn't select a folder. else GuiControl,Config:,GUIGlyphClientPath,%Folder%\ return SelectFolderData: FileSelectFolder, Folder, , 3 if Folder = MsgBox, You didn't select a folder. else GuiControl,Config:,GUIGlyphDataPath,%Folder%\ return SteamSettings: ;Default steam settings. GuiControlGet, SteamCheck if(SteamCheck = 1) { ;DefaultSteam Settings GlyphDataPath := "C:\Program Files (x86)\Steam\steamapps\common\Trove\" GlyphClientPath := "C:\Program Files (x86)\Steam\steamapps\common\Trove\" GuiControl,Config:,GUIGlyphClientPath,%GlyphClientPath% GuiControl,Config:,GUIGlyphDataPath,%GlyphDataPath% } Else { ;Default Glyph Settings. EnvGet, LOCALAPPDATA, LOCALAPPDATA GlyphDataPath := LOCALAPPDATA "\Glyph\" GlyphClientPath := "C:\Program Files (x86)\Glyph\" GuiControl,Config:,GUIGlyphClientPath,%GlyphClientPath% GuiControl,Config:,GUIGlyphDataPath,%GlyphDataPath% } Return RunGlyphNoLogin: IniDelete, %GlyphDataPath%GlyphClient.cfg, Glyph, Login FoundDat = 0 Loop, Files, %GlyphDataPath%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Deleting and then remake the Cache dir. This is to prevent saving of older or other username hashes. FileRemoveDir, %GlyphDataPath%Cache, 1 FileCreateDir, %GlyphDataPath%Cache } Run, %GlyphClientPath%\GlyphClient.exe return LoginNamesList: if A_GuiControlEvent <> DoubleClick return LaunchSelected: ;Sets Var for current selected to LoginNames Var. Gui, Main:Submit, Nohide ;Warns the user that they need to select a account name first. if (LoginNames = "") { Msgbox, Unable to run selected account. As you forgot to select one. :*( Return } ;Sets saved auto login data. SetAutoLoginData(GlyphDataPath, LoginNames) ;Runs Glyph Run, %GlyphClientPath%\GlyphClient.exe Return SaveAddCurrnetLogin: ;Saves current logged in username/hash data. SaveLoginData(GlyphDataPath) ;Reloading list UsernameListReload() Return DeleteSelectedAccount: ;Sets Var for current selected to LoginNames Var. Gui, Main:Submit, Nohide ;This is fix a bug to prevent deleting all your saved logins. if (LoginNames = "") { Msgbox, Unable to delete selected username. As you forgot to select one. :*( Return } ;Notify MsgBox, Deleting all info for %LoginNames% ;Deletes all settings for that user. FileRemoveDir, %A_ScriptDir%/SavedLogins/%LoginNames%, 1 ;Reloading list UsernameListReload() Return ConfigGuiClose: ConfigToggle: if !ConfigWindowToggle { Gui, Config:Show } else { Gui, Config:Hide } ConfigWindowToggle := !ConfigWindowToggle Return MainGuiClose: ;Reload Exitapp Return UsernameListReload() { GuiControl, Main:, LoginNames,| FolderList := loop, %A_ScriptDir%\SavedLogins\*, 2 FolderList .= A_LoopFileName . "|" GuiControl, Main:, LoginNames, %FolderList% Return } ;Function to save currnet saved current logged in user. SaveLoginData(GlyphFolder) { ;Reading Login name IniRead, LoginName, %GlyphFolder%GlyphClient.cfg, Glyph, Login ;Warning user if no .dat is not in the folder. And if found copying for later use. FoundDat = 0 Loop, Files, %GlyphFolder%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Creating Saved LoginName Folder IfNotExist, %A_ScriptDir%/SavedLogins FileCreateDir, %A_ScriptDir%/SavedLogins ;Creating LoginName Folder IfNotExist, %A_ScriptDir%/SavedLogins/%LoginName% FileCreateDir, %A_ScriptDir%/SavedLogins/%LoginName% ;Copying Current .dat files over to new folder by current login name. This will overwrite exsiting files. FileCopy, %GlyphFolder%Cache\*.dat, %A_ScriptDir%/SavedLogins/%LoginName%, 1 Msgbox Login hash for %LoginName% saved. If the name is on the list already it will overwrite older hashes. } else { Msgbox Unable to find login hash for "%LoginName%". Please check to make sure glyph auto logs in and check the pathing to the data folder. } return } ;Function To load Set usernames autologin data. SetAutoLoginData(GlyphFolder,LoginName) { ;Checking to see if Glyph is running. If window found it will do nothing. Process, Exist, GlyphClient.exe if (ErrorLevel != 0) { Process, Close, GlyphClient.exe Process, WaitClose, GlyphClient.exe } LoginToBeUsed := LoginName ;Writing Login name to config file. IniWrite, %LoginToBeUsed%, %GlyphFolder%GlyphClient.cfg, Glyph, Login ;Deleting and then remake the Cache dir. This is to prevent saving of older or other username hashes. FoundDat = 0 Loop, Files, %GlyphFolder%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Deleting and then remaking the Cache dir. This is to prevent saving of older hashes. FileRemoveDir, %GlyphFolder%Cache, 1 FileCreateDir, %GlyphFolder%Cache } ;Checking for .dat file if found copying over. FoundDat = 0 Loop, Files, %A_ScriptDir%\SavedLogins\%LoginToBeUsed%\*.dat FoundDat = 1 If (FoundDat = 1) { ;Copying Current .dat files over to new folder by current login name. This will overwrite exsiting files. FileCopy, %A_ScriptDir%/SavedLogins/%LoginToBeUsed%\*.dat, %GlyphFolder%Cache, 1 ;Msgbox Login hash for %LoginToBeUsed% set. } else { Msgbox Unable to find login hash for %LoginToBeUsed%. Please login again and hit save again. } ;Lauching Glyph ;Run, %GlyphClientPath%\GlyphClient.exe return } ;Version 1.0.2 ;Fixed config error for not giving the global var for client/data path on close of the config window. Version 1.0.2 Code:Copy ;Version 1.0 ;Autologin sytem using trove saved login hashes ;Version 1.0.1 ;Fixing a bug that if you hit delete selected user with out having one selected it would delete them all. ;Fixed when you hit launch acocunt when no account selected. Same error as a above. ;Edited/Fixed the way accounts are saving to give warning to user if the .dat file is not found or unable to get this the hash. ;Version 1.0.2 ;Fixed config erorr for not giving the gloabl var for client/data path on close of the config window. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ;#Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. EnvGet, LOCALAPPDATA, LOCALAPPDATA Global GlyphDataPath ;:= LOCALAPPDATA "\Glyph" Global GlyphClientPath ;:= "C:\Program Files (x86)\Glyph\" Global IniFile := "AutoLoginLauncher.ini" ;Save Filename ;Declaring gloabl Var you should not need to change anything below. Global ConfigWindowToggle := False Global FoundDat Global SteamCheckBox := "Button1" ;Don't change this it is used for GUI Checkboss. Global GUIMainCaption := "Auto Login Launcher by Nipper" Global GUIConfigCaption := "Auto Login Launcher Config" ;Checking for ini. If not found creates one with default settings. IfNotExist, %A_ScriptDir%/%IniFile% { EnvGet, LOCALAPPDATA, LOCALAPPDATA GlyphDataPath := LOCALAPPDATA "\Glyph\" GlyphClientPath := "C:\Program Files (x86)\Glyph\" IniWrite, 0, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniWrite, %GlyphDataPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniWrite, %GlyphClientPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath } ;Reading ini for settings. IniRead, SteamCheckBox, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniRead, GlyphDataPath, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniRead, GlyphClientPath, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath ;Checking for saved users. GuiControl, Main:, LoginNames,| Global FolderList := loop, %A_ScriptDir%\SavedLogins\*, 2 FolderList .= A_LoopFileName . "|" Gui, Main: -MaximizeBox -MinimizeBox Gui, Main:Add, Text, x12 y9 w150 h20 , Saved Account Logins: Gui, Main:Add, ListBox, x12 y29 w180 h150 vLoginNames gLoginNamesList, %FolderList% Gui, Main:Add, Button, x12 y179 w180 h20 gRunGlyphNoLogin, Launch Glyph with no login Gui, Main:Add, Button, x12 y209 w180 h20 gLaunchSelected, Launch Selected Account Gui, Main:Add, Button, x12 y229 w180 h20 gSaveAddCurrnetLogin, Save/Add Current Login Gui, Main:Add, Button, x12 y249 w180 h20 gDeleteSelectedAccount, Delete Selected Account Gui, Main:Add, Button, x12 y279 w80 h20 gConfigToggle, Config Gui, Main:Add, Button, x102 y279 w90 h20 gMainGuiClose, Exit Gui, Config:-MaximizeBox -MinimizeBox -Disabled Gui, Config:Add, Text, x12 y9 w150 h20 , Are you using Steam Version? Gui, Config:Add, CheckBox, x162 y9 w20 h20 vSteamCheck gSteamSettings Gui, Config:Add, Text, x12 y39 w260 h20 , Path to GlyphClient.exe Gui, Config:Add, Edit, x12 y59 w260 h20 vGUIGlyphClientPath, %GlyphClientPath% Gui, Config:Add, Button, x272 y59 w60 h20 gSelectFolderClient, Browse Gui, Config:Add, Text, x12 y89 w260 h20 , Path to Glyph Configs Gui, Config:Add, Edit, x12 y109 w260 h20 vGUIGlyphDataPath, %GlyphDataPath% Gui, Config:Add, Button, x272 y109 w60 h20 gSelectFolderData, Browse Gui, Config:Add, Button, x12 y139 w320 h30 gSaveExitConfig, Save and Exit Config Gui, Config:Show, Hide AutoSize Center h182 w346, %GUIConfigCaption% if(SteamCheckBox = 1) { Guicontrol, Config:, SteamCheck, 1 SteamCheck = 1 } else { SteamCheck = 0 } Gui, Main:Show, AutoSize Center h314 w205, %GUIMainCaption% Return SaveExitConfig: Gui, Config:Submit, Hide IniWrite, %SteamCheck%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, SteamCheckBox IniWrite, %GUIGlyphDataPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphDataPath IniWrite, %GUIGlyphClientPath%, %A_ScriptDir%/%IniFile%, AutoLoginSettings, GlyphClientPath GlyphDataPath := GUIGlyphDataPath GlyphClientPath := GUIGlyphClientPath ConfigWindowToggle := !ConfigWindowToggle return SelectFolderClient: FileSelectFolder, Folder, , 3 if Folder = MsgBox, You didn't select a folder. else GuiControl,Config:,GUIGlyphClientPath,%Folder%\ return SelectFolderData: FileSelectFolder, Folder, , 3 if Folder = MsgBox, You didn't select a folder. else GuiControl,Config:,GUIGlyphDataPath,%Folder%\ return SteamSettings: ;Default steam settings. GuiControlGet, SteamCheck if(SteamCheck = 1) { ;DefaultSteam Settings GlyphDataPath := "C:\Program Files (x86)\Steam\steamapps\common\Trove\" GlyphClientPath := "C:\Program Files (x86)\Steam\steamapps\common\Trove\" GuiControl,Config:,GUIGlyphClientPath,%GlyphClientPath% GuiControl,Config:,GUIGlyphDataPath,%GlyphDataPath% } Else { ;Default Glyph Settings. EnvGet, LOCALAPPDATA, LOCALAPPDATA GlyphDataPath := LOCALAPPDATA "\Glyph\" GlyphClientPath := "C:\Program Files (x86)\Glyph\" GuiControl,Config:,GUIGlyphClientPath,%GlyphClientPath% GuiControl,Config:,GUIGlyphDataPath,%GlyphDataPath% } Return RunGlyphNoLogin: IniDelete, %GlyphDataPath%GlyphClient.cfg, Glyph, Login FoundDat = 0 Loop, Files, %GlyphDataPath%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Deleting and then remake the Cache dir. This is to prevent saving of older or other username hashes. FileRemoveDir, %GlyphDataPath%Cache, 1 FileCreateDir, %GlyphDataPath%Cache } Run, %GlyphClientPath%\GlyphClient.exe return LoginNamesList: if A_GuiControlEvent <> DoubleClick return LaunchSelected: ;Sets Var for current selected to LoginNames Var. Gui, Main:Submit, Nohide ;Warns the user that they need to select a account name first. if (LoginNames = "") { Msgbox, Unable to run selected account. As you forgot to select one. :*( Return } ;Sets saved auto login data. SetAutoLoginData(GlyphDataPath, LoginNames) ;Runs Glyph Run, %GlyphClientPath%\GlyphClient.exe Return SaveAddCurrnetLogin: ;Saves current logged in username/hash data. SaveLoginData(GlyphDataPath) ;Reloading list UsernameListReload() Return DeleteSelectedAccount: ;Sets Var for current selected to LoginNames Var. Gui, Main:Submit, Nohide ;This is fix a bug to prevent deleting all your saved logins. if (LoginNames = "") { Msgbox, Unable to delete selected username. As you forgot to select one. :*( Return } ;Notify MsgBox, Deleting all info for %LoginNames% ;Deletes all settings for that user. FileRemoveDir, %A_ScriptDir%/SavedLogins/%LoginNames%, 1 ;Reloading list UsernameListReload() Return ConfigGuiClose: ConfigToggle: if !ConfigWindowToggle { Gui, Config:Show } else { Gui, Config:Hide } ConfigWindowToggle := !ConfigWindowToggle Return MainGuiClose: ;Reload Exitapp Return UsernameListReload() { GuiControl, Main:, LoginNames,| FolderList := loop, %A_ScriptDir%\SavedLogins\*, 2 FolderList .= A_LoopFileName . "|" GuiControl, Main:, LoginNames, %FolderList% Return } ;Function to save currnet saved current logged in user. SaveLoginData(GlyphFolder) { ;Reading Login name IniRead, LoginName, %GlyphFolder%GlyphClient.cfg, Glyph, Login ;Warning user if no .dat is not in the folder. And if found copying for later use. FoundDat = 0 Loop, Files, %GlyphFolder%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Creating Saved LoginName Folder IfNotExist, %A_ScriptDir%/SavedLogins FileCreateDir, %A_ScriptDir%/SavedLogins ;Creating LoginName Folder IfNotExist, %A_ScriptDir%/SavedLogins/%LoginName% FileCreateDir, %A_ScriptDir%/SavedLogins/%LoginName% ;Copying Current .dat files over to new folder by current login name. This will overwrite exsiting files. FileCopy, %GlyphFolder%Cache\*.dat, %A_ScriptDir%/SavedLogins/%LoginName%, 1 Msgbox Login hash for %LoginName% saved. If the name is on the list already it will overwrite older hashes. } else { Msgbox Unable to find login hash for "%LoginName%". Please check to make sure glyph auto logs in and check the pathing to the data folder. } return } ;Function To load Set usernames autologin data. SetAutoLoginData(GlyphFolder,LoginName) { ;Checking to see if Glyph is running. If window found it will do nothing. Process, Exist, GlyphClient.exe if (ErrorLevel != 0) { Process, Close, GlyphClient.exe Process, WaitClose, GlyphClient.exe } LoginToBeUsed := LoginName ;Writing Login name to config file. IniWrite, %LoginToBeUsed%, %GlyphFolder%GlyphClient.cfg, Glyph, Login ;Deleting and then remake the Cache dir. This is to prevent saving of older or other username hashes. FoundDat = 0 Loop, Files, %GlyphFolder%Cache\*.dat FoundDat = 1 If (FoundDat = 1) { ;Deleting and then remaking the Cache dir. This is to prevent saving of older hashes. FileRemoveDir, %GlyphFolder%Cache, 1 FileCreateDir, %GlyphFolder%Cache } ;Checking for .dat file if found copying over. FoundDat = 0 Loop, Files, %A_ScriptDir%\SavedLogins\%LoginToBeUsed%\*.dat FoundDat = 1 If (FoundDat = 1) { ;Copying Current .dat files over to new folder by current login name. This will overwrite exsiting files. FileCopy, %A_ScriptDir%/SavedLogins/%LoginToBeUsed%\*.dat, %GlyphFolder%Cache, 1 ;Msgbox Login hash for %LoginToBeUsed% set. } else { Msgbox Unable to find login hash for %LoginToBeUsed%. Please login again and hit save again. } ;Lauching Glyph ;Run, %GlyphClientPath%\GlyphClient.exe return } https://www.virustotal.com/en/file/b...is/1441551528/ Code:Copy SHA256: bbe89684b42c0f273d4ab6e4dd7bf5ae04cda3b3afbd31379e3912bcf3a984e6 File name: MultiClientLauncher1.0.2.rar Detection ratio: 2 / 56 Analysis date: 2015-09-06 14:58:48 UTC ( 0 minutes ago ) Download: As always, use caution. This file is provided for archival purposes. SickGaming cannot be held liable. |