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
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
torpin005
Master Cheater
Reputation: 0

Joined: 19 Nov 2007
Posts: 255

PostPosted: Mon Jan 21, 2008 9:22 pm    Post subject: vb6 Reply with quote

Hi whats the code in vb6 too freeze an address?
Back to top
View user's profile Send private message AIM Address
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Mon Jan 21, 2008 9:36 pm    Post subject: Reply with quote

It depends, what is the address?
_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
torpin005
Master Cheater
Reputation: 0

Joined: 19 Nov 2007
Posts: 255

PostPosted: Mon Jan 21, 2008 9:37 pm    Post subject: Reply with quote

its a time address. Like how can i freeze the time in a game.
Back to top
View user's profile Send private message AIM Address
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Mon Jan 21, 2008 9:38 pm    Post subject: Reply with quote

Create a thread that would run a constant loop which writes a specific value (what you want it to be freezed as) to a specific address (the address that you want to be freezed).

You should be able to Google for the main components of the algorithm, and piece it together. You can't expect people to do all your work for you, can you? Razz

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
torpin005
Master Cheater
Reputation: 0

Joined: 19 Nov 2007
Posts: 255

PostPosted: Mon Jan 21, 2008 9:43 pm    Post subject: Reply with quote

i tried google and i still dont get it, idk how to use strings
Back to top
View user's profile Send private message AIM Address
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Mon Jan 21, 2008 10:12 pm    Post subject: Reply with quote

freeze is a loop.

like..

Quote:
Private Sub Command1_Click()
Timer1.Enabled = IIf(Timer1.Enabled = True, False, True)

End Sub

Private Sub Form_Load()
Timer1.Interval = 100
Timer1.Enabled = False
End Sub

Private Sub Timer1_Timer()
Text1 = "1"
End Sub


This is an non-real example.

So, when you try to change the value of the textbox once the timer is active, the timer will change the value to his determinated value. Which can be changed at any variable in a real case.

_________________

Back to top
View user's profile Send private message
Ep¡c+Age
I post too much
Reputation: 1

Joined: 10 Feb 2007
Posts: 4363
Location: /loli/

PostPosted: Wed Jan 23, 2008 2:41 am    Post subject: Reply with quote

Create a Timer in the Timer put coding similar to below.. (also remember to set your timers interval in properties window to something like 10)

Code:
Private Sub Timer1_Timer()
Call Form1.ShockwaveFlash1.SetVariable("_root.speed", 9999)
End Sub


Then in project make a button with coding similar to this...

Code:
Private Sub Command1_Click()
Timer1 = True
End Sub


To shut it off make a button that has this coding or similar...

Code:
Private Sub Command2_Click()
Timer1 = False
End Sub
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Wed Jan 23, 2008 2:47 am    Post subject: Reply with quote

Br1tn3y wrote:
...To shut it off make a button that has this coding or similar...

Code:
Private Sub Command2_Click()
Timer1 = False
End Sub



It's nice but i like this better Wink Saves u space on the app 2 Razz
Code:
Private Sub Command1_Click()
if timer1.enabled="false" then
command1.caption="Speed hack enabled"
Timer1 = True
else
command1.caption="Speed hack disabled"
Timer1 = false
End Sub

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Ep¡c+Age
I post too much
Reputation: 1

Joined: 10 Feb 2007
Posts: 4363
Location: /loli/

PostPosted: Wed Jan 23, 2008 2:50 am    Post subject: Reply with quote

Naablet wrote:
It's nice but i like this better Wink Saves u space on the app 2 Razz
Code:
Private Sub Command1_Click()
if timer1.enabled="false" then
command1.caption="Speed hack enabled"
Timer1 = True
else
command1.caption="Speed hack disabled"
Timer1 = false
End Sub


Lol, True but I was simply showing him basic way of doing it, seeing as how he didn't even know how to make a timer freeze a variable... I wasn't expecting him to know about If statements.
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Wed Jan 23, 2008 2:52 am    Post subject: Reply with quote

Br1tn3y wrote:

Lol, True but I was simply showing him basic way of doing it, seeing as how he didn't even know how to make a timer freeze a variable... I wasn't expecting him to know about If statements.

Oh.
Your right Razz

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Jan 23, 2008 3:03 am    Post subject: Reply with quote

Or you can save more space using iif Wink

Code:
Private Sub Command1_Click()
    Timer1.Enabled = IIf(Timer1.Enabled, False, True)
End Sub

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Wed Jan 23, 2008 3:35 am    Post subject: Reply with quote

Wiccaan wrote:
Or you can save more space using iif Wink

Code:
Private Sub Command1_Click()
    Timer1.Enabled = IIf(Timer1.Enabled, False, True)
End Sub

You might wanna tell the user whats really going on.
I mean if u use the code in which you have supplied then the user wouldn't know that if he presses the button on more time the timer will get disabled right?

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Wed Jan 23, 2008 9:19 pm    Post subject: Reply with quote

Naablet wrote:
Wiccaan wrote:
Or you can save more space using iif Wink

Code:
Private Sub Command1_Click()
    Timer1.Enabled = IIf(Timer1.Enabled, False, True)
End Sub

You might wanna tell the user whats really going on.
I mean if u use the code in which you have supplied then the user wouldn't know that if he presses the button on more time the timer will get disabled right?


It self explained, it have been one of the best codes i been use. Razz

Timer1.Enabled = IIf(Timer1.Enabled, False, True)

Only thing i don't get.. is why if i write..

Code:
Timer1.Enabled = IIf(Timer1.Enabled = True, False, True)


I need to use "=" sign, mean while, if i use

Code:
Timer1.Enabled = IIf(Timer1.Enabled, False, True)


I can simply use a coma and i save a lil bit more writes.

_________________

Back to top
View user's profile Send private message
torpin005
Master Cheater
Reputation: 0

Joined: 19 Nov 2007
Posts: 255

PostPosted: Wed Jan 23, 2008 10:28 pm    Post subject: Reply with quote

i know if's. But only for like passwords and stuff
Back to top
View user's profile Send private message AIM Address
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Jan 24, 2008 6:21 am    Post subject: Reply with quote

XxOsirisxX
Well as i said i dont like ur method as the user aren't informed about the button really does.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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