View previous topic :: View next topic |
Author |
Message |
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Mon Oct 11, 2021 9:00 am Post subject: [Lua Form]Combo Box help[solved] |
|
|
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 |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1053 Location: 0x90
|
Posted: Mon Oct 11, 2021 10:52 am Post subject: |
|
|
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 |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Tue Oct 12, 2021 12:10 am Post subject: |
|
|
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 |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1053 Location: 0x90
|
Posted: Tue Oct 12, 2021 5:03 am Post subject: |
|
|
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 |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Tue Oct 12, 2021 5:46 am Post subject: |
|
|
ty _________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1053 Location: 0x90
|
Posted: Tue Oct 12, 2021 5:48 am Post subject: |
|
|
You're welcome . If I helped you in any way, feel free to hit the reputation button. |
|
Back to top |
|
|
|