| View previous topic :: View next topic |
| Author |
Message |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Feb 22, 2008 1:50 am Post subject: Drop down-menu with user prompted textbox? |
|
|
For example:
At the top of the trainer there is something called "My hacks"
Click it, and it drops down a menu with a bunch of hacks.
Say one of the hacks is a score hack, and I click it to change my score, and a
textbox comes up saying "please insert what score you want". I enter in my value, hit ok, and my score gets changed.
With a button it would be something like:
| Code: | | Call Flash1.SetVariable("score", TextBox1.Text) |
But for a drop down menu?
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Fri Feb 22, 2008 1:55 am Post subject: Re: Drop down-menu with user prompted textbox? |
|
|
| AndrewMan wrote: | For example:
At the top of the trainer there is something called "My hacks"
Click it, and it drops down a menu with a bunch of hacks.
Say one of the hacks is a score hack, and I click it to change my score, and a
textbox comes up saying "please insert what score you want". I enter in my value, hit ok, and my score gets changed.
With a button it would be something like:
| Code: | | Call Flash1.SetVariable("score", TextBox1.Text) |
But for a drop down menu? |
Make a dialog.
|
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Fri Feb 22, 2008 7:12 am Post subject: |
|
|
Button code, in the drop down menu:
| Code: |
VariableValue = Inputbox "Score amount:"
Call Flash1.SetVariable("score", VariableValue)
|
VariableValue is a string variable.
Haven't been using VB6 for a while, so I dont know if the code is 100% correct.[/code]
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Feb 22, 2008 10:56 am Post subject: |
|
|
| Moller wrote: | Button code, in the drop down menu:
| Code: |
VariableValue = Inputbox "Score amount:"
Call Flash1.SetVariable("score", VariableValue)
|
VariableValue is a string variable.
Haven't been using VB6 for a while, so I dont know if the code is 100% correct.[/code] |
I'll try thanks!
Edit: Just gives me an error message
Reason: Im using VB 2008 so I think the coding is a little different.
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Fri Feb 22, 2008 2:54 pm Post subject: |
|
|
| Code: | | Call AxShockwaveFlash1.SetVariable("score", InputBox("Set Score", "Title")) |
_________________
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Feb 22, 2008 4:35 pm Post subject: |
|
|
| Blader wrote: | | Code: | | Call AxShockwaveFlash1.SetVariable("score", InputBox("Set Score", "Title")) |
|
It worked!!!
_________________
|
|
| Back to top |
|
 |
|