Hack Forums
[.NET] [Code] Force Steam Login - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Code] Force Steam Login (/showthread.php?tid=401374)



[Code] Force Steam Login - The-One - May 4, 2010

Hello,

Code
Code
Private Sub FSL()
Try
      Dim SteamExe() As Process = System.Diagnostics.Process.GetProcessesByName("steam.exe")
      Dim Path As String = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) & "\Steam\config\SteamAppData.vdf"
      If IO.File.Exists(Path) = True Then
         IO.File.Delete(Path)
      End If
      For Each p As Process In SteamExe
      p.Kill()
Next
Catch ex As Exception
End Try
End Sub

Useage
Code
FSL()



* - Ajumma - May 4, 2010

thanks, I'll try it 2moro =D


* - StRaXxXD - May 4, 2010

Nice one...Did you code it ?


* - iKorkSkalle - May 4, 2010

Shouldn't you kill the Steam process first?
If user have Steam running i guess the path can't be deleted?
Correct me if im wrong, please.

Anyway, nice.


* - Rhizoid - May 4, 2010

this is a old code bro ;(


* - aiobeta - May 4, 2010

(May 4, 2010 05:05 AM)iKorkSkalle Wrote:  Shouldn't you kill the Steam process first?
If user have Steam running i guess the path can't be deleted?
Correct me if im wrong, please.

Anyway, nice.

agreed you would not delete the path if the process is runnig

nice code

thanks


* - TehShrink - May 4, 2010

Thanks for the contribution, might have some use for this.


* - Heb0 - May 4, 2010

(May 4, 2010 05:05 AM)iKorkSkalle Wrote:  Shouldn't you kill the Steam process first?
If user have Steam running i guess the path can't be deleted?
Correct me if im wrong, please.

Anyway, nice.

Thats true man!


* - Cunt - May 4, 2010

Nice but old and Korrupt.exe coded this (i think)
and also ~ i dnt think steam needs to be closed :/
and i dont use progrma files so look at reg.


* - The-One - May 4, 2010

(May 4, 2010 12:09 PM)FaNaTiC Wrote:  Nice but old and Korrupt.exe coded this (i think)
and also ~ i dnt think steam needs to be closed :/
and i dont use progrma files so look at reg.

Somebody told me a while ago that the login details where saved in SteamAppData.

Yes, ofcourse you need to kill the steam.exe first. Ill add it.
Added it to the code.


* - n1cson - May 4, 2010

yes login datas are saved in steamappdata
you can open the steamappdata and then you can see your logins^^


* - codepoet - May 4, 2010

very nice share man....thanks


* - 0xE9 - May 4, 2010

yea, my version is short eaiser and steam can be open, coded by me.

https://hackforums.net/showthread.php?tid=383639


* - The-One - May 5, 2010

Ok,yes ofcourse there are more ways to do this :)