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 


[HELP] How to make a hack in a new form than ShockwaveFlash1

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

Joined: 12 Dec 2007
Posts: 44

PostPosted: Wed Dec 12, 2007 2:11 pm    Post subject: [HELP] How to make a hack in a new form than ShockwaveFlash1 Reply with quote

I need more help.. in the trainer i am making i added a More HAcks button and when u clicks that a new Form is appear BUT how do i fix so when u click at a hack at form4 for an example cash hack how do i make the cash hack from form4 working at form1 with ShockwaveFlash1 ?

+rep to who is helping me!


Last edited by SwedenS on Thu Dec 13, 2007 2:49 am; edited 3 times in total
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Dec 12, 2007 2:19 pm    Post subject: Reply with quote

Code:
Form1.Command14_Click


Edit.. err nvm that, my bad lol. Had a brain fart there for a sec..

Anyway, you can't directly call the other forms sub because it is private. You will need to make a function that will do it and make it public. For example, on form 1 you will have:

Code:
Option Explicit

Public Function ClickButton()
    Command1_Click
End Function

Private Sub Command1_Click()
    MsgBox "Hello!"
End Sub


And then to call the click event, you can use this in form2:

Code:
Option Explicit

Private Sub Command1_Click()
    Call Form1.ClickButton
End Sub

_________________
- Retired.


Last edited by atom0s on Wed Dec 12, 2007 2:25 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Wed Dec 12, 2007 2:24 pm    Post subject: Reply with quote

isnt it

private sub form1.command14_click()
form2.show
End Sub

?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Dec 12, 2007 2:26 pm    Post subject: Reply with quote

masterkert3 wrote:
isnt it

private sub form1.command14_click()
form2.show
End Sub

?


Naw, my first response was wrong too, had a brainfar for a sec. The subs for events of objects are private to a form. So you will have to make a function that will call that objects events for you to use publicly.

You can alternatively make the subs public as well, but it's suggested not to.

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

Joined: 12 Dec 2007
Posts: 44

PostPosted: Thu Dec 13, 2007 2:27 am    Post subject: Reply with quote

Heym, thx.. but i got an answer at another forum.. it is

Private Sub Command15_Click()
Form2.Show
End Sub


READ TOPIC MORE HELP PLS!
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Dec 13, 2007 4:00 am    Post subject: Reply with quote

SwedenS wrote:
READ TOPIC MORE HELP PLS!


Looks like it was already answered. Confused
Back to top
View user's profile Send private message
SwedenS
Cheater
Reputation: 0

Joined: 12 Dec 2007
Posts: 44

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

I did fix it by my self..

First Solotion:
Quote:

Private Sub Command14_Click()
Form2.Show
End Sub


Second Solotion:
Quote:

Private Sub Command4_Click()
Call Form1.ShockwaveFlash1.SetVariable("RTWunits", 9999999)
End Sub
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

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

SwedenS wrote:
I did fix it by my self..

First Solotion:
Quote:

Private Sub Command14_Click()
Form2.Show
End Sub


Second Solotion:
Quote:

Private Sub Command4_Click()
Call Form1.ShockwaveFlash1.SetVariable("RTWunits", 9999999)
End Sub


You edited your first post. It never said anything about flash before. You asked how to call a command buttons function from another form to make it show the other. Nothing to do with flash in the first question.

Don't edit your posts then "flip out" and change your question. The initial question was answered, if you needed more help you could have just asked.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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