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 


[Lua Form]Combo Box help[solved]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Mon Oct 11, 2021 9:00 am    Post subject: [Lua Form]Combo Box help[solved] Reply with quote

All i want to do is to select string in combo box and make changes to edit,label and etc.
_________________
void(__cdecl *Haxing)(HWND hGameWindow)


Last edited by Frouk on Tue Oct 12, 2021 5:47 am; edited 1 time in total
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Mon Oct 11, 2021 10:52 am    Post subject: Reply with quote

Your post isn't clear what you're trying to achieve. Just so you're aware, 'etc...' means et cetera. It's used to omit extra entries of a list e.g.: pizza toppings always include tomato, cheese, herbs etc...

That aside, if you can clarify what you're trying to achieve then perhaps we could be of more help.
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Tue Oct 12, 2021 12:10 am    Post subject: Reply with quote

Let's say i selected a string in combo box called "Money",when i select,edit address changes(means that if i select money the address will change to money address)
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Tue Oct 12, 2021 5:03 am    Post subject: Reply with quote

Use a table/array to store the addresses and set the address of the edit field based on the item index of the combobox.

Code:

local addresses = { '0x1', '0x2', '0x3' }

function UDF1_ComboChange(sender)
--[[
Items = 0: Money
        1: Health
        3: Armour
]]
UDF1.CEEdit1.Text = addresses[UDF1.Combo.ItemIndex+1]
end
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Tue Oct 12, 2021 5:46 am    Post subject: Reply with quote

ty
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Tue Oct 12, 2021 5:48 am    Post subject: This post has 1 review(s) Reply with quote

You're welcome Smile. If I helped you in any way, feel free to hit the reputation button.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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