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 question

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

Joined: 27 Sep 2007
Posts: 118

PostPosted: Thu Dec 13, 2007 9:52 am    Post subject: vb6 question Reply with quote

sooo umm yep another question...
this time Confused
how to turn enable/disable cheats in the menu editor?

i mean

somehack : ticked then: the hacked value

somehack : unticked then: original value...

how do i do that?
Back to top
View user's profile Send private message
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Thu Dec 13, 2007 10:03 am    Post subject: Reply with quote

uh, you want when its ticked its the hacked value? and when its not ticked put it back to like 100 or whatever it is? like a hotkey?
Back to top
View user's profile Send private message Visit poster's website
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Thu Dec 13, 2007 10:28 am    Post subject: Reply with quote

Code:
If timer1.enabled = false then
 Timer1.enabled = true
 mnuWhatever.checked = true
else
 Timer1.enabled = false
 mnuWhatever.checked = false
end if

I usually use timers for hacks, thats why its Timer1.
And mnuwhatever is the menu button name
Back to top
View user's profile Send private message
xXx123
Expert Cheater
Reputation: 0

Joined: 27 Sep 2007
Posts: 118

PostPosted: Thu Dec 13, 2007 10:34 am    Post subject: Reply with quote

ohhh thx Razz
Back to top
View user's profile Send private message
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Thu Dec 13, 2007 10:47 am    Post subject: Reply with quote

uh, good reply, unlike mine, lolz
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Dec 13, 2007 3:34 pm    Post subject: Reply with quote

I suggest not using timers for this, you have two events that will do the work for you and don't need a timer for it at all. You wish to have 1 thing written when a menu is checked, then write the original when it is unchecked. So, firstly, you will want to make the checked function.


Firstly, to get your menu to toggle the check mark you can use this:

Code:
Private Sub mnuCheats_Nop_Click()
    mnuCheats_Nop.Checked = Not mnuCheats_Nop.Checked
End Sub


One easy line of code to toggle the check on and off. Next, you can use an if then under that to check if it is checked or not and do the given cheats:

Code:
    If mnuCheats_Nop.Checked = False Then
        '// Unchecked
    Else
        '// Checked
    End If


Next, it depends on what you want the code to do. Is your code going to freeze a value that will change if you don't write it constantly? Or is it a value that is static and will alter game play when you change it? Or, do you want to rewrite an instruction in the game?

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

Joined: 27 Sep 2007
Posts: 118

PostPosted: Thu Dec 13, 2007 5:22 pm    Post subject: Reply with quote

wow thx your so helping! and moller thx for the help too
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