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 


Drop down-menu with user prompted textbox?

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

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Feb 22, 2008 1:50 am    Post subject: Drop down-menu with user prompted textbox? Reply with quote

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
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Fri Feb 22, 2008 1:55 am    Post subject: Re: Drop down-menu with user prompted textbox? Reply with quote

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
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Fri Feb 22, 2008 7:12 am    Post subject: Reply with quote

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
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Feb 22, 2008 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Fri Feb 22, 2008 2:54 pm    Post subject: Reply with quote

Code:
Call AxShockwaveFlash1.SetVariable("score", InputBox("Set Score", "Title"))

_________________
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Feb 22, 2008 4:35 pm    Post subject: Reply with quote

Blader wrote:
Code:
Call AxShockwaveFlash1.SetVariable("score", InputBox("Set Score", "Title"))


It worked!!!

_________________
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