| 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
|
Posted: Sat Oct 20, 2007 4:23 pm Post subject: VB6 Help with Variables |
|
|
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 |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Sat Oct 20, 2007 4:28 pm Post subject: Re: VB6 Help with Variables |
|
|
| 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 |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sun Oct 21, 2007 2:14 am Post subject: Re: VB6 Help with Variables |
|
|
| 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 |
|
 |
Jaetoo Expert Cheater
Reputation: 0
Joined: 03 Sep 2007 Posts: 109 Location: Where am I?
|
Posted: Sun Oct 21, 2007 12:19 pm Post subject: |
|
|
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 |
|
 |
•Music• Master Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 486 Location: In a box...
|
Posted: Wed Oct 24, 2007 2:05 pm Post subject: |
|
|
| or you could use a if then statement |
|
| Back to top |
|
 |
|