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 


VB6 Help with Variables

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Valvex
I post too much
Reputation: 0

Joined: 11 Jun 2007
Posts: 2447
Location: 127.0.0.1

PostPosted: Sat Oct 20, 2007 4:23 pm    Post subject: VB6 Help with Variables Reply with quote

so I want to add something that calls on a certain variables when a number changes.

so say the number is set to 100 and if the number increases by whatever amount, it will instantly call something?
any ideas
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Sat Oct 20, 2007 4:28 pm    Post subject: Re: VB6 Help with Variables Reply with quote

XHale wrote:
so I want to add something that calls on a certain variables when a number changes.

so say the number is set to 100 and if the number increases by whatever amount, it will instantly call something?
any ideas

You could use GetVariable on a timer to see if the variable's value changed.

_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Sun Oct 21, 2007 2:14 am    Post subject: Re: VB6 Help with Variables Reply with quote

Xenephobe wrote:
XHale wrote:
so I want to add something that calls on a certain variables when a number changes.

so say the number is set to 100 and if the number increases by whatever amount, it will instantly call something?
any ideas

You could use GetVariable on a timer to see if the variable's value changed.


GetVariable is only for flash right?
yeah but still, the timer method is probably the best way VB can do...


o lets see... Timer1_Timer()
if Control.Variable<>TheOldValue then
doSomething
end if
End Sub

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
Jaetoo
Expert Cheater
Reputation: 0

Joined: 03 Sep 2007
Posts: 109
Location: Where am I?

PostPosted: Sun Oct 21, 2007 12:19 pm    Post subject: Reply with quote

Just do this
Code:
if shockwaveflash1.getvariable("variablename") = "number here" then
call shockwaveflash1.setvariable("variable", number)
end if
end sub


tell me if this works.
Back to top
View user's profile Send private message
•Music•
Master Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 486
Location: In a box...

PostPosted: Wed Oct 24, 2007 2:05 pm    Post subject: Reply with quote

or you could use a if then statement
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