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 


Search For Text Vb.net

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Geek4Ever
Master Cheater
Reputation: 1

Joined: 31 Oct 2008
Posts: 353
Location: Milano,Texas

PostPosted: Sat Feb 21, 2009 2:44 pm    Post subject: Search For Text Vb.net Reply with quote

ok i want to make a var scanner for flash games and i want to do this
Flash.GetVariable(Text)
i dont know if that will work but i want to seach for _root.Text how would i do that or is there a faster way.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Sat Feb 21, 2009 5:02 pm    Post subject: Reply with quote

... For vb.net

'flash' is your flash object
'textbox1' is your textbox to scan variables from line by line.
'textbox2' is the textbox that will return variables that are real.

Code:

        Dim i = 0 'use this variable to remember the current line in textbox 1'
        Dim current = ""  'use this to record current value in line.'
        Me.TextBox1.Text = Me.TextBox1.Text

        Do Until i = Me.TextBox1.Lines.Length
            If i = 0 Then
                current = Me.TextBox1.Text.Split(vbCrLf)(i).Substring(0)
            Else
                current = Me.TextBox1.Text.Split(vbCrLf)(i).Substring(1)
            End If
            On Error GoTo x
            Me.flash.GetVariable(current)
            Me.TextBox2.Text &= current & vbCrLf
x:
            i += 1
        Loop


Quote:
I suppose


Do you want to use the getvariable command? then do this

Code:

on error goto x
Flash.GetVariable("_root.text")
call msgbox("Variable Exists!")
x:
exit sub


or

Code:

on error goto x
Flash.GetVariable(me.textbox1.text)
call msgbox("Variable Exists!")
x:
exit sub

_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
Geek4Ever
Master Cheater
Reputation: 1

Joined: 31 Oct 2008
Posts: 353
Location: Milano,Texas

PostPosted: Sat Feb 21, 2009 5:31 pm    Post subject: Reply with quote

it need to scan for variables not from a text file or from a text file just scans from the code.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Sat Feb 21, 2009 5:54 pm    Post subject: Reply with quote

umm then I'll replace a couple of things.
Code:


dim output as string=""
dim input as string="variable1" & vbcrlf & "variable2" & vbcrlf
        Dim i = 0 'use this variable to remember the current line in textbox 1'
        Dim current = ""  'use this to record current value in line.'

        Do Until i = Me.TextBox1.Lines.Length
            If i = 0 Then
                current = input.Split(vbCrLf)(i).Substring(0)
            Else
                current = input.Split(vbCrLf)(i).Substring(1)
            End If
            On Error GoTo x
            Me.flash.GetVariable(current)
            output &= current & vbCrLf
x:
            i += 1
        Loop
call msgbox(output)


You need to put vbcrlf after each variable name in the input text.

Note: Vbcrlf = line.

_________________
CEF will always stay alive.
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