Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Making a Variable scanner in vb (Question)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
soul reaver
Expert Cheater
Reputation: 0

Joined: 18 Dec 2007
Posts: 119
Location: the ciTy OF lIgHTs !

PostPosted: Thu May 01, 2008 4:51 am    Post subject: Making a Variable scanner in vb (Question) Reply with quote

hello fellow hackers i am having a problem at making my scanner (variable scanner)this is my first scanner and after i get some idea or tut ill try to make it in flash so guys i wanted to say that i am having problem at finding variable I have a text file , dictionary but i cant get how to open it and how to make it read each line.
when i will finish it ill release it too
Back to top
View user's profile Send private message
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Thu May 01, 2008 6:40 am    Post subject: Reply with quote

If it's in VB6, split the file using CrLf as the delimiter.
If you're using VB.Net, use the System.IO class.
Back to top
View user's profile Send private message
soul reaver
Expert Cheater
Reputation: 0

Joined: 18 Dec 2007
Posts: 119
Location: the ciTy OF lIgHTs !

PostPosted: Thu May 01, 2008 7:08 am    Post subject: Reply with quote

I didint get that can you tell me briefly
Back to top
View user's profile Send private message
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Fri May 02, 2008 5:29 am    Post subject: Reply with quote

This should handle the browse file dialogue:

Code:

Public Class Form1
    Public Sub BrowseFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BrowseFile.Click
Dim FolderBrowseDialog As New OpenFileDialog
        Dim sr As IO.StreamReader
        Dim Contents As String = sr.ReadToEnd

        With FolderBrowseDialog
            .Filter = "Text files (*.txt)|*.txt|" & "All files|*.*"
            .InitialDirectory = "C:"
            .RestoreDirectory = True

            If .ShowDialog = Windows.Forms.DialogResult.OK Then
                sr = New IO.StreamReader(.OpenFile)
               
                txtFileDirectory.Text = .FileName
                txtFileContents.Text = Contents
            End If
        End With

    End Sub

Sorry I don't have time to get the code for the separate line-reading but the HomeandLearn website should show you how just fine:
http://www.homeandlearn.co.uk/NET/nets8p3.html

Hope this helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites