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 


(VB.NET) If & Getvariable commands

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

Joined: 03 Oct 2010
Posts: 130
Location: Canada :D

PostPosted: Thu Jun 23, 2011 5:43 pm    Post subject: (VB.NET) If & Getvariable commands Reply with quote

Hey guys sorry if its a nooby question its just that i havnt used VB in many months and have forgotten some stuff. Anyways my question is how do i make a code that says something like if a variable = 0 then change the text of a textbox to ____. And if the variable = 1 then change the text of the textbox to somthing else. Could anyone please help me out?
_________________
Will is introducing his friend to his family.He goes to uncle phil and says"ALL OF THIS IS MY UNCLE PHIL" *waving around a big circle around uncle phil
Very Happy
Back to top
View user's profile Send private message
Mal1t1a
Cheater
Reputation: 0

Joined: 03 Jan 2010
Posts: 40

PostPosted: Thu Jun 23, 2011 6:59 pm    Post subject: Reply with quote

Code:

If VariableName = 0 Then
Textbox1.Text = "ALL OF THIS IS MY UNCLE PHIL"
ElseIf VariableName = 1 Then
Textbox1.Text = "Nvm"
End If


This what you mean???
Back to top
View user's profile Send private message
killmanx27
Expert Cheater
Reputation: 1

Joined: 03 Oct 2010
Posts: 130
Location: Canada :D

PostPosted: Thu Jun 23, 2011 7:40 pm    Post subject: Reply with quote

Kinda the only thing is how do i get it to know which code to use and where like Getvariable is which i have been using. Cuz if i just put the variable it wont know duh. Then when i put the Axshockwaveflash1._______ i dont know what to put next besides that i know it. Do you know?
_________________
Will is introducing his friend to his family.He goes to uncle phil and says"ALL OF THIS IS MY UNCLE PHIL" *waving around a big circle around uncle phil
Very Happy
Back to top
View user's profile Send private message
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Thu Jun 23, 2011 8:51 pm    Post subject: Reply with quote

Code:
If Axshockwaveflash1.GetVariable("variablename") = 50 Then
MessageBox.Show("Hello")
End If
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