| View previous topic :: View next topic |
| Author |
Message |
SwedenS Cheater
Reputation: 0
Joined: 12 Dec 2007 Posts: 44
|
Posted: Wed Dec 12, 2007 2:11 pm Post subject: [HELP] How to make a hack in a new form than ShockwaveFlash1 |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Dec 12, 2007 2:19 pm Post subject: |
|
|
| 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 |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Wed Dec 12, 2007 2:24 pm Post subject: |
|
|
isnt it
private sub form1.command14_click()
form2.show
End Sub
?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Dec 12, 2007 2:26 pm Post subject: |
|
|
| 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 |
|
 |
SwedenS Cheater
Reputation: 0
Joined: 12 Dec 2007 Posts: 44
|
Posted: Thu Dec 13, 2007 2:27 am Post subject: |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Dec 13, 2007 4:00 am Post subject: |
|
|
| SwedenS wrote: | | READ TOPIC MORE HELP PLS! |
Looks like it was already answered.
|
|
| Back to top |
|
 |
SwedenS Cheater
Reputation: 0
Joined: 12 Dec 2007 Posts: 44
|
Posted: Thu Dec 13, 2007 5:03 am Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Dec 13, 2007 3:23 pm Post subject: |
|
|
| 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 |
|
 |
|