View previous topic :: View next topic |
Author |
Message |
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sat Jun 20, 2015 6:52 am Post subject: Get Value From CEEdit |
|
|
Hello,
Does anyone could fix this problem:
i made CEForm as UDF1 and edit field to input text (AOB code) as CEEdit1, CEButton1 to catch AOB code input by user in CEEdit1.
Code: |
function CEButton1Click(sender)
j = control_getCaption(UDF1.CEEdit1)
---- to test it
print(j)
end
|
It give result "Error:attempt to call a nil value".
Thanks and regards
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Sat Jun 20, 2015 7:15 am Post subject: |
|
|
execute the lua script before clicking buttons, else the button click can't find that function
also, for edit's it's recommended to get the Text property instead of caption, so try j=UDF1.CEEdit1.Text
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sat Jun 20, 2015 11:26 pm Post subject: |
|
|
Thank so much Dark Byte,
By follow your hint, now my script is work properly.
So here it is a simple CE trainer tool use for convert UTF-8 to Base64 (for AOB).
Regards
Description: |
|
Filesize: |
33.65 KB |
Viewed: |
4103 Time(s) |
|
|
|
Back to top |
|
|
|